[il-antlr-interest: 28174] [antlr-interest] Out of memory - how to avoid retaining all tokens??

2010-03-04 Thread John Pool
to help. I noticed that the exception does not occur (and scanning the file goes considerably faster) when in lexer.NextToken() I comment out int m = input.Mark(); and input.Rewind(m); but I am not sure what undesired effect this may have. Regards, John Pool List: http://w

[il-antlr-interest: 28146] [antlr-interest] Out of memory problem for filter grammar

2010-03-02 Thread John Pool
to help. I noticed that the exception does not occur (and scanning the file goes considerably faster) when in lexer.NextToken() I comment out int m = input.Mark(); and input.Rewind(m); but I am not sure what undesired effect this may have. Regards, John Pool List: http://w

[il-antlr-interest: 27980] [antlr-interest] C# example of "lexical filter mode" ??

2010-02-18 Thread John Pool
n the book, but that URL won't open. Regards, John Pool List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-

[il-antlr-interest: 27881] Re: [antlr-interest] Creating AST with third party grammar

2010-02-10 Thread John Pool
I strongly advise you to purchase 'The Definitive ANTLR Reference'. C# example below. Cheers -- John Pool MyLexer lexer = new MyLexer (new ANTLRStringStream ("my code to parse")); // ... or ANTLRFileStream ("my file to parse") CommonTokenStream cts

[il-antlr-interest: 27834] [antlr-interest] NoViableAltException remains undetected

2010-02-09 Thread John Pool
that without seeing the actual grammar and code it might be hard to figure out what is going on, but I am just wondering if there is some general approach that I can take before submitting code. Kind regards, John Pool List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe