[il-antlr-interest: 24034] [antlr-interest] how to implement this string rule?

2009-06-04 Thread Xiaohua Guo
Hi, I have a description of the string like this in my problem description: String = arbitrary string of letters, digits and symbols, starting and ending with '"' As I understand, the requirement said the string can include any kind of symbols but I really don't know how to implement it. I wrot

[il-antlr-interest: 24251] [antlr-interest] How could I store the data in objects?

2009-06-16 Thread Xiaohua Guo
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