[il-antlr-interest: 26125] What a BoooBss Hid cam A Special Photos NEW MODELS HOT & sssSEXYyy

2009-10-07 Thread shanthick
What a BoooBss Hid cam A Special Photos NEW MODELS HOT & sssSEXYyy http://www.AWSurveys.com/HomeMain.cfm?RefID=dynamicsat http://www.AWSurveys.com/HomeMain.cfm?RefID=dynamicsat http://www.AWSurveys.com/HomeMain.cfm?RefID=dynamicsat --~--~-~--~~---

[il-antlr-interest: 26126] [antlr-interest] How to stop tree-parsing

2009-10-07 Thread David Marín Carreño
I am developing a formula evaluation software, using an ANTLR lexer, parser and tree-parser. I have some doubts about how to specify grammar and semantic actions for a “return” clause. Now, a return clause is specified as ^(RETURN expression). Is there any easy way for stopping tree-parsing and

[il-antlr-interest: 26127] [antlr-interest] C++ grammar for ANTLR v3 ?

2009-10-07 Thread Lisa Bahler
I'm looking for a C++ grammar for ANTLR v3. Does one exist? If not yet, what is the status? List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~-~--~~~---~--~~ Y

[il-antlr-interest: 26128] Re: [antlr-interest] Help writing a particular semantic predicate

2009-10-07 Thread Jim Idle
Actually, your approach is wrong here. What you want to aim at in the parser is to accept all the syntax that can possibly be good but if it is not, can be rejected using semantic checks later. This is because a good semantic error such as "not able to use 'v2' when you utilize 'b'" is much more

[il-antlr-interest: 26129] Re: [antlr-interest] [c target] tracing

2009-10-07 Thread Юрушкин Михаил
Use C traget. Have added -trace option... But it have generated JAVA code for every rule "System.out.println("exit entity_decl "+LT(1)+" failed="+failed+" backtracking="+BACKTRACKING);" ??? why java not C? What about -debug option? It's also not working (see my last message). Could u write

[il-antlr-interest: 26130] Re: [antlr-interest] [c target] tracing

2009-10-07 Thread Jim Idle
Debug should work OK from a parser but tree parser debugging probably isn't too hot. Up to press nobody has really needed to use it. The trace option isn't really implemented but the conditionals are still in the template so that I can come back to it some day. In general I find it more useful

[il-antlr-interest: 26131] Re: [antlr-interest] Why BANG after rule id ?

2009-10-07 Thread Ellery Newcomer
On Tue, Oct 6, 2009 at 5:51 PM, Graham Wideman wrote: > > Anyhow, it looks to me like a '!' in this position is recognized but > ignored -- either a vestige of a no-longer active feature, or an > anticipation of a future feature? > > -- Graham > > In ANTLR v2, it turns off AST construction for the

[il-antlr-interest: 26132] [antlr-interest] MSBUILD/Vs2008

2009-10-07 Thread Jim Idle
Has anyone worked out the exact configuration for MSBUILD instructions for adding in to csproj files in VS2008 with the C# target? The Wiki version may have worked fine for VS2005 but in VS2008 it does not encapsulate dependencies properly and the .cs files get compiled before the .g files, whic

[il-antlr-interest: 26133] Re: [antlr-interest] MSBUILD/Vs2008

2009-10-07 Thread Sam Harwell
I disabled the clean due to problems with P4 having the generated files readonly on disk. You can use it as a base for future improvements if you want. This forces the correct build order so you only have to build once (I included the import line just so you see where I placed it). This configu

[il-antlr-interest: 26134] Re: [antlr-interest] C++ grammar for ANTLR v3 ?

2009-10-07 Thread Sam Harwell
The only complete working grammar for ANTLR v3 written in ANTLR v3 is the set of grammars in my C# port, and they use the CSharp3 target. The C# port of the ANTLR tool uses these grammars internally for all its processing, so they are tested working. It would take a significant amount of work to p

[il-antlr-interest: 26135] Re: [antlr-interest] MSBUILD/Vs2008

2009-10-07 Thread Jim Idle
Cool. Perhps you can put this in the Wiki artivcle? One question - when I have 3 grammar files in the project, is that just the one ItemGroup or multiple, one per .g file? Jim From: Sam Harwell [mailto:sharw...@pixelminegames.com] Sent: Wednesday, October 07, 2009 11:29 AM To: Jim Idl

[il-antlr-interest: 26136] Re: [antlr-interest] C++ grammar for ANTLR v3 ?

2009-10-07 Thread Jim Idle
I think that the OP meant is there a set of grammars that parse C++, but are written for ANTLR v3 rather than v2? As far as I know, the answer is no. C++ is not the easiest thing to parse and it cannot be done purely with grammar. Jim > -Original Message- > From: antlr-interest-boun...

[il-antlr-interest: 26137] Re: [antlr-interest] Unit testing grammar productions and injecting EOF

2009-10-07 Thread Gavin Lambert
At 09:37 6/10/2009, Kaleb Pederson wrote: >After some investigation, I found that the reason for the >failure was that EOF wasn't in the expected follow set, >which makes sense when I'm parsing the whole language. > >As a workaround, I changed my production, adding EOF as an >optional termin

[il-antlr-interest: 26138] [antlr-interest] Best practices for AST building

2009-10-07 Thread Kaleb Pederson
Can anybody recommend some good links to best practices for AST building? In the past, I've manually built heterogeneous trees via the actions associated with various productions. This works, but I'm hoping to find something better. I've been looking at the ANTLR examples and how they generate

[il-antlr-interest: 26140] [antlr-interest] ambiguous grammar???

2009-10-07 Thread Blue Doze
Hi, I have a couple of rules that I don't know how to make them not ambiguous First rule is: STRING_LITERAL : '"' ( EscapeSequence | ~('\\'|'"') )* '"' ; The second one is: math_formula : '"' expression '"' ; The expression rule is similar to C expression rule. Appreciate any help.

[il-antlr-interest: 26141] Re: [antlr-interest] ambiguous grammar???

2009-10-07 Thread Blue Doze
More clarification to the rules the math_forumla will be on the LHS, e.g. for the syntax "variable_name" = "&array[2]" where the variable_name shall be a STRING, and the &array[2] shall be an expression. On Wed, Oct 7, 2009 at 4:42 PM, Blue Doze > wrote: > Hi, > > I have a couple of rules that

[il-antlr-interest: 26142] Re: [antlr-interest] ambiguous grammar???

2009-10-07 Thread Blue Doze
Sorry, the math_formula is RHS On Wed, Oct 7, 2009 at 5:22 PM, Blue Doze wrote: > More clarification to the rules > the math_forumla will be on the LHS, e.g. for the syntax > > "variable_name" = "&array[2]" > where the variable_name shall be a STRING, and the &array[2] shall be an > expression.