[il-antlr-interest: 31450] [antlr-interest] R: Compile errors with CSharp2 Target

2011-02-15 Thread Massimiliano Donini
Can you attach source (generated) code? In C# target there are some differeneces from java Antrl runtime (e.g. Token interface is called IToken you can find others differences here: http://www.antlr.org/wiki/display/ANTLR3/Antlr+3+CSharp+Target?focusedCommen tId=25559049#comment-25559049) If you

[il-antlr-interest: 31454] [antlr-interest] I: Compile errors with CSharp2 Target

2011-02-15 Thread Massimiliano Donini
[mailto:simonzm...@gmail.com] Inviato: martedì 15 febbraio 2011 12:05 A: Massimiliano Donini Oggetto: Re: [antlr-interest] Compile errors with CSharp2 Target Hi Max, Thanks for the thoughts - I've attached the generated code. You can see the grammar here: http://code.google.com/p/phpparser

[il-antlr-interest: 31370] Re: [antlr-interest] Partial grammar for class counting

2011-02-06 Thread Massimiliano Donini
Hi pavel, Did you try to use Lexical Filter? Have a look http://www.antlr.org/wiki/display/ANTLR3/Lexical+filters Hope it helps Best Regards Max Il 06/02/2011 17:04, Pavel Martynov ha scritto: Hi! I need to count the number of classes in correct C# source file. I wrote the following

[il-antlr-interest: 31185] [antlr-interest] Antlr 3.3 Generate wrong debug code C# target

2011-01-17 Thread Massimiliano Donini
Hi, i'm writing because i have some problems using Antlr 3.3, target CSharp3 with -debug option. Compile the attached grammar (taken from Antlr 3.3 examples) with -debug, ANTLR generates wrong C# code eg: * generates wrong class definition eg: public partial class Myclass :

[il-antlr-interest: 31146] [antlr-interest] AW ambiguous path visualization

2011-01-12 Thread Massimiliano Donini
Hi, in AW i have some problem to get ambiguous path visualization and cannot get ambiguous rules to become red even if compilations emits several warnings. My grammar is a pure parser that import another parser grammar. I can e-mail grammars if necessary. I have also noticed that AW doesn't

[il-antlr-interest: 31124] Re: [antlr-interest] Antrr 3.3 template Output

2011-01-11 Thread Massimiliano Donini
my opinion, what do you think? Best regards Max Massimiliano Donini ha scritto: Hi, with Antlr 3.3 CSharp i try to use output = template, but generated class not compile because of a creation of STAttrMap object. Looking in the ST.stg at line 132 / 139 / 146 i found 3 template wich create

[il-antlr-interest: 31095] [antlr-interest] Antrr 3.3 template Output

2011-01-07 Thread Massimiliano Donini
Hi, with Antlr 3.3 CSharp i try to use output = template, but generated class not compile because of a creation of STAttrMap object. Looking in the ST.stg at line 132 / 139 / 146 i found 3 template wich create a new istance of STAttrMap object, but i can't found in Antlr 3.3 runtime dll. Am

[il-antlr-interest: 30912] Re: [antlr-interest] Lexer and Parser using CSharp3

2010-12-19 Thread Massimiliano Donini
Hi Gian Maria For generate public method with C# 3 runtime declare in your grammar the rule as public /protected like this: public start : (left | num); Greetings Max Il 19/12/2010 13:43, Gian Maria ha scritto: program: start+; start : (let | num); let: LET; num

[il-antlr-interest: 30874] Re: [antlr-interest] AntrlWorks Rule Grouping

2010-12-13 Thread Massimiliano Donini
-Original Message- From: antlr-interest-boun...@antlr.org [mailto:antlr-interest- boun...@antlr.org] On Behalf Of Massimiliano Donini Sent: Monday, December 13, 2010 3:53 PM To: ANTLR Interest Subject: [antlr-interest] AntrlWorks Rule Grouping Hi, Under Windows 7 (x64) i cannot get AW rule

[il-antlr-interest: 30805] [antlr-interest] Error Handling

2010-12-06 Thread Massimiliano Donini
Hi, i have some question about error handling. Giving a look at the string template used for generate source code (i'm using CSharp2/3 as target language) i see that every parser rule is coded in a try catch finally block, so i woul like to know what is the best way to catch error. Looking at

[il-antlr-interest: 30692] [antlr-interest] AntlrWorks Debugging problems

2010-11-30 Thread Massimiliano Donini
Hi, I'm not able to debug a grammar copmposed by a lexer and a parser. I try to remote debug with VS2008 in the same way i do for a composite grammar but i got a IOException and in AntrlWorks i got every time Timeout message. I don't have running process on AntrlWorks debug port. What i was

[il-antlr-interest: 30654] [antlr-interest] Lexer rule precedence

2010-11-26 Thread Massimiliano Donini
Hi, i have one problems on lexer rules and i can't understand why. As attachment there's a piece of my grammar where i got the error: Debugging i can correctly match 'NULL', but i can't match 'DEFAULT NULL' there something that i miss I think there is something wrong with lexer rule

[il-antlr-interest: 30659] Re: [antlr-interest] Reading all text to end-of-line in a rule

2010-11-26 Thread Massimiliano Donini
Can you send complete grammar? That error is about lexer rules order Max Il 26/11/2010 20:09, Bill Lear ha scritto: On Friday, November 26, 2010 at 19:23:24 (+0100) Martijn Reuvers writes: Hello Bill, The grammar below does the trick for your command (I stripped it somewhat, to quickly

[il-antlr-interest: 30554] [antlr-interest] Unable To compile Grammars

2010-11-15 Thread Massimiliano Donini
Hi, i'm quite a newbie of ANTLR and I have some problems when i try to compile my grammars. I list the grammars rules (taken from Ivan Brezina's **OracleSQL* http://www.ibrezina.net/OracleSQL.tgz *Grammar) that generate me some troubles sql_expression :expr_add ; expr_add