Is it okay for us to let the program define the TOKENs itself?? I
tried to work with the text file and the output I had is some arrays.
How can I make the grammar file understand and I dont have to define
token myself and my program can define it automatically from a text
file??

for example: the text file I had is: "
student, noun.
pupil, noun.
play, verb.
study, verb.
good, adj
"

How can I make it understand and automatically define TOKEN such as:
NOUN: 'student' | 'pupil' ;
VERB: 'study' | 'play' ;
ADJ: 'good' ;

Please help me with this. I'm new to this. Thank you
Paige

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to