Hi, I have written a grammar file in antlr to generate a parser and a lexer. I want to use them to read a .dp file, get the data from tokens and then store the data in objects. In that way I could use the data in the objects to generate a data file. Some of the data in the objects will be reused in future that's why I stored them in objects first. I have written a class in Java, the objects can be initialized by the DataOfTask class. The return value may be float or a distribution.
My problem is I don't know how to change my .g file so that I could store the data in the objects. The attachment is my .g file, .dp file, DataOfTask class, and the test file. Can some give me some advice? Thank you! --~--~---------~--~----~------------~-------~--~----~ 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-interest@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 -~----------~----~----~----~------~----~------~--~---
parserwithantlr.rar
Description: Binary data
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address