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
[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
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
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
:
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
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
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
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
-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
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
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
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
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
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
14 matches
Mail list logo