Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#26 2014-01-14 22:14:23

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: how to make an expression parser in c#

Okay, I just said what I thought.
Continue with any language that suits you.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#27 2014-01-15 05:20:24

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: how to make an expression parser in c#

Hi gAr;

Python is easier for people who are new to coding but then yazz does not seem so. Also, in order to distribute software written in python, you need to have the target machine running python on it. C++ is likely to become essential at some time.

I do not like C# for similar reasons as you. But it has got some cool things like builtin biginteger support.

What distro are you using?


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#28 2014-01-15 05:31:11

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: how to make an expression parser in c#

Hi yazz;
http://www.codeproject.com/Articles/276 … -Evaluator
Are you a complete beginner in programming?

gAr wrote:

Yes, and as a good programmer, you must ensure that it can be used in any OS.

Linus Torvalds wrote:

Portability is for people who cannot write new programs.


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#29 2014-01-15 06:18:55

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: how to make an expression parser in c#

Hi Agnishom,

Most of the schools and colleges here begin with C, that too mostly by half knowledgeable persons. They get bogged down by things like pointers, without first knowing details like memory layout, instead of concentrating on problem solving. Serves no purpose at all..

I run mint 13.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#30 2014-01-18 02:08:41

yazz
Member
Registered: 2014-01-14
Posts: 425

Re: how to make an expression parser in c#

i've been blocked for few days for some reasons..don't know why?
i am not an absolute beginner

gAr wrote:

Most of the schools and colleges here begin with
C

yeah thats true..
now i realised my mistakes..i'll first learn python and to solve problems...and i am sorry if i've raised a stupid question..and am i not eligible to write a parser right now?

Last edited by yazz (2014-01-18 02:13:16)


Knowledge is knowing that a tomato is a
fruit, but Wisdom is knowing not to put it in a fruit salad tongue.

Offline

#31 2014-01-18 02:16:28

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: how to make an expression parser in c#

Hi yazz;

There is no law against trying to write one just for fun and how do you know you can not?

I never wrote a parser either.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#32 2014-01-18 02:35:11

yazz
Member
Registered: 2014-01-14
Posts: 425

Re: how to make an expression parser in c#

i do know !my heart says every minute .
but hearing on your comments i get a thought that i am a waste.is there any psychological  way to get rid of it.
..but my current situation doesn't allow me..i am struggling to face my studies rather than to concentrate on programming.
or am i too serious tongue

Last edited by yazz (2014-01-18 02:39:31)


Knowledge is knowing that a tomato is a
fruit, but Wisdom is knowing not to put it in a fruit salad tongue.

Offline

#33 2014-01-18 02:44:11

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: how to make an expression parser in c#

but hearing on your comments i get a thought that i am a waste.

I never said or thought that you are a waste.

is there any psychological  way to get rid of it.

Yep, there is. In yoga which is from your part of the world you are taught to go at your own pace. Not to measure your progress up against anyone else. There are always people that are smarter.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#34 2014-01-18 02:55:58

yazz
Member
Registered: 2014-01-14
Posts: 425

Re: how to make an expression parser in c#

I never said or thought that you are a waste.

i am happy to hear that.

Not to measure your progress up against
anyone else

yes i should overcome my inferiority conplex.

i 've discontinued my yoga practice  bcoz of my laziness..and i will continue it.

Last edited by yazz (2014-01-18 02:57:32)


Knowledge is knowing that a tomato is a
fruit, but Wisdom is knowing not to put it in a fruit salad tongue.

Offline

#35 2014-01-18 03:00:52

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: how to make an expression parser in c#

To be humble is not being inferior. Let the rest of the world judge you anyway they please. Remain detached from public opinion. It is almost always wrong anyway.

You hit it right on the nail. If you work hard you can pass up those that are smarter and more talented.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#36 2014-01-18 03:09:36

yazz
Member
Registered: 2014-01-14
Posts: 425

Re: how to make an expression parser in c#

If you work hard you
can pass up those that are smarter and more
talented.

i will definitely work hard..


Knowledge is knowing that a tomato is a
fruit, but Wisdom is knowing not to put it in a fruit salad tongue.

Offline

#37 2014-01-18 03:13:54

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: how to make an expression parser in c#

Hi;

Very good!

Also, someone will be very glad to see that I have been quoted.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#38 2014-01-18 03:18:11

yazz
Member
Registered: 2014-01-14
Posts: 425

Re: how to make an expression parser in c#

and you will be very glad to hear that "you are my ROLE MODEL!!!"


Knowledge is knowing that a tomato is a
fruit, but Wisdom is knowing not to put it in a fruit salad tongue.

Offline

#39 2014-01-18 03:26:01

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: how to make an expression parser in c#

Hmmm. If that were deserved I would be happy. There has never been a bigger waste of human skin than me. I disappointed my parents, my teachers, my bosses... The only people I did not disappoint were my enemies, they think I am a great guy.

I would suggest picking someone else as your model.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#40 2014-01-18 03:46:49

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: how to make an expression parser in c#

and am i not eligible to write a parser right now?

You'll have to decide that. If you have the determination then you'll be able to do much more complicated things, let alone a parser.

I do not underestimate you nor do I think you're an absolute beginner.


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#41 2014-01-18 16:20:09

yazz
Member
Registered: 2014-01-14
Posts: 425

Re: how to make an expression parser in c#

thank you all for your encouragement and correction of my mistakes. smile


Knowledge is knowing that a tomato is a
fruit, but Wisdom is knowing not to put it in a fruit salad tongue.

Offline

#42 2014-01-18 17:09:20

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: how to make an expression parser in c#

Did you decide to use Linux?


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#43 2014-01-20 01:18:23

yazz
Member
Registered: 2014-01-14
Posts: 425

Re: how to make an expression parser in c#

no..bcoz w8 is enough for me now


Knowledge is knowing that a tomato is a
fruit, but Wisdom is knowing not to put it in a fruit salad tongue.

Offline

#44 2014-01-21 04:11:06

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: how to make an expression parser in c#

Okay, carry on


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#45 2014-11-08 17:45:10

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: how to make an expression parser in c#

@yazz: Please let me know if coding up the expression parser was successful and whether it supports negative numbers.


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

Board footer

Powered by FluxBB