Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Maybe something for the math library... a WIP Math Parser!
#21
Quote:just google for ebnf grammars, lexer etc. you'll get a lot of info on the methods i used. it's really easy and you can add variable and constant stuff really easy and in a transparent way

After scratching my head a bit, I am beginning to see how the BNF stuff works. However, how would you add support for constants and variables? In RPN it was easy, just check each item on the stack, is a function? an operator? a number? if not it has to be a variable or constant.

I feel like the proverbal 'ol' dog'. :-)
Reply


Messages In This Thread
Maybe something for the math library... a WIP Math Parser! - by keeling - 03-08-2005, 11:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)