LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   JFlex question (https://www.linuxquestions.org/questions/programming-9/jflex-question-4175547758/)

manolakis 07-11-2015 11:57 AM

JFlex question
 
Hi there,

Can anyone tell me if we use the following flex if ABC will be fully parsed when reach state1?

Quote:

<STATE1>{
"A" {System.out.println("A");}
"B" {System.out.println("B");}
"C" {System.out.println("C");}
}
Thank you.

manolakis 07-11-2015 12:14 PM

Regarding my previous post I also want to ask if the parser will only parse A from ABC?


All times are GMT -5. The time now is 05:51 PM.