Jump to content

interpretation compiler implemented in Java using the JavaCC - 'while' loop

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
aston.havoc

aston.havoc

    Newbie

  • Members
  • Pip
  • 1 posts
I need a help with interpretation compiler implemented in Java using the JavaCC, i already implemented Lexical, Syntax, Semantic analyzator, operators and condition 'if' and what i need is 'while' loop, i really dont know how i can implement this loop. I appreciate any help !

thx

#2
kmhosny

kmhosny

    Programmer

  • Members
  • PipPipPipPip
  • 133 posts
do you mean validating the while loop? or making a real loop?
if validating then it should not differ from the implementation of 'if'.
if you intend to run the code entered for testing then i guess you may try to call the java loop within the javaCC.
"Recursion is just a line of code"
-Karim Hosny-
My flickr