hello this is my first topic here;
how we can implement a new language that has its own keywords?
Example 1: Considering we have a language expression that evaluates
arithmetic, the grammar contains the following keywords:
"+" "-" "*" "/" "." "(" ")"
Example 2: A language that can perform operation on a form
logical,his grammar contains the following keywords:
"And" "or" "<->" "->" "(" ")" .......
the common thing in these languages writing does not exceed one line.
how we can make a parser syntactic and semantics?
give me some ideas to get start;
This post has been edited by zkai: 12 November 2010 - 04:41 AM

New Topic/Question
Reply




MultiQuote





|