[il-antlr-interest: 34845] Re: [antlr-interest] Fundamental question

2011-11-11 Thread Mari Matinlassi
at: http://www.antlr.org/wiki/display/ANTLR3/Custom+Syntax+Error+Recovery as it may help. This is also useful for the other person asking about AST construction on errors, though in the end that probably comes down to custom coding. Jim -Original Message- From: Mari Matinlassi

[il-antlr-interest: 34827] Re: [antlr-interest] Fundamental question

2011-11-10 Thread Mari Matinlassi
-interest- boun...@antlr.org] On Behalf Of Ian Kaplan Sent: Wednesday, November 09, 2011 9:09 AM To: Mari Matinlassi Cc: antlr-interest@antlr.org Subject: Re: [antlr-interest] Fundamental question There is nothing wrong as far as the syntax goes with this. There could, for example

[il-antlr-interest: 34828] Re: [antlr-interest] Accepting Erroneus Code in AST construction

2011-11-10 Thread Mari Matinlassi
Hans-Georg, A very relevant problem. ANTLR collapses my AST completely to a single error token if some kinds of mismatches happen. I would also like to know if a solution is found.. -mari -Original Message- From: antlr-interest-boun...@antlr.org

[il-antlr-interest: 34814] [antlr-interest] Fundamental question

2011-11-09 Thread Mari Matinlassi
Hi, There is something fundamental and important that I have not understood with ANTLR grammars. If I need to parse something like... int test; strig another; int variable; string here; You notice there is a typing error on the second line ('strig' instead of

[il-antlr-interest: 34768] Re: [antlr-interest] Treeparser with custom nodes?

2011-11-07 Thread Mari Matinlassi
Hi, I am answering here on my own question :) I had tree parser option filter = true Removed that and works fine now.. Mari -Original Message- From: antlr-interest-boun...@antlr.org [mailto:antlr-interest-boun...@antlr.org] On Behalf Of Mari Matinlassi Sent: Friday, November 04

[il-antlr-interest: 34714] [antlr-interest] Treeparser with custom nodes?

2011-11-04 Thread Mari Matinlassi
Hi, I am making a tree parser with custom nodes (C# target). I get error message The non-generic type 'Antlr.Runtime.Tree.TreeRewriter' cannot be used with type arguments. That error is in Antlr generated tree parser class. I copy the code snippet below. public partial class

[il-antlr-interest: 34202] [antlr-interest] Csharp target, Recover(input, e)

2011-09-28 Thread Mari Matinlassi
Hi, I am doing a grammar for C sharp target. I have following problem, I need help with… When parser input contains unexpected character, let´s say ‘*’ or ‘’ that is not defined in any lexer/parser rule or token, happens the following: 1. RecognitionException (subtype

[il-antlr-interest: 34206] Re: [antlr-interest] Csharp target, Recover(input, e)

2011-09-28 Thread Mari Matinlassi
Ok. In a separate email. Mari -Original Message- From: Sam Harwell [mailto:sharw...@pixelminegames.com] Sent: Wednesday, September 28, 2011 6:17 PM To: 'Mari Matinlassi'; antlr-interest@antlr.org Subject: RE: [antlr-interest] Csharp target, Recover(input, e) I've never seen this occur

[il-antlr-interest: 34155] Re: [antlr-interest] Custom object tree from tree parser?

2011-09-26 Thread Mari Matinlassi
...@gmail.com] Sent: Sunday, September 25, 2011 3:32 PM To: Mari Matinlassi Cc: antlr-interest@antlr.org Subject: Re: [antlr-interest] Custom object tree from tree parser? Mari, Did you ever get an answer to this? I agree a pointer or example on this would be extremely helpful. I will be doing

[il-antlr-interest: 34126] [antlr-interest] Custom object tree from tree parser?

2011-09-23 Thread Mari Matinlassi
Hello, I want to build custom object trees from text. As a simplified example, parser input is Car Seat; Car Audi; Customer John; Parser output shall be an object tree where e.g. Car object is an instantiation of a class below (Respectively, Customer class would be something similar): public

[il-antlr-interest: 33563] Re: [antlr-interest] Problem when generating ANTLRv3.g for C Sharp target?

2011-08-10 Thread Mari Matinlassi
:-) Laters, Mari -Original Message- From: Sam Harwell [mailto:sharw...@pixelminegames.com] Sent: Tuesday, August 09, 2011 4:18 PM To: 'Mari Matinlassi'; antlr-interest@antlr.org Subject: RE: [antlr-interest] Problem when generating ANTLRv3.g for C Sharp target? Hi Mari, I've never used

[il-antlr-interest: 33536] [antlr-interest] Problem when generating ANTLRv3.g for C Sharp target?

2011-08-09 Thread Mari Matinlassi
Dear fellows, Our research project wants to create meta-language for defining domain specific languages. And, we have chosen to take ANTLR as a tool and ANTLRv3.g as a starting point for our meta-language. Therefore, I want to generate ANTLRv3Parser.cs and ANTLRv3Lexer.cs and build them in