creatign lexical analayzer that used implement the symbols

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • birhane
    New Member
    • May 2014
    • 1

    creatign lexical analayzer that used implement the symbols

    Creating Lexical analyzer using java language.
    Objective:
    my lexical analyzer needs to be able to recognize the
    following keywords and symbols:
    and class do else false
    + - * / [ ] \{ \} ( ) . , ; ==
  • chaarmann
    Recognized Expert Contributor
    • Nov 2007
    • 785

    #2
    You can implement it very easily using the technique "recursive descent" (Just google for recursive descent). You can also read about tools like Lex and Yacc that are parsing code by any grammar (syntax) that you can define yourself.

    Comment

    Working...