... What antlr version are you using? It gives no problems with the current antlr2 development code. Could you check if it's ok with my latest snapshot from: ...
13786
Ric Klaren
izniegoed
Nov 1, 2004 10:22 am
... Check antlr 2.7.4 or a snapshot from: http://wwwhome.cs.utwente.nl/~klaren/antlr Then report back. Cheers, Ric -- ... Chaos often breeds life, when order...
13787
Ric Klaren
izniegoed
Nov 1, 2004 10:29 am
... You'd probably have to make a custom error handler(s) for the rule(s) that need this. You can access the text that got parsed so far with the getText()...
13788
marqkole
Nov 1, 2004 11:05 am
All, A few weeks ago (just before the ANTLR workshop in SFO) I managed to get a pure Python version of ANTLR working on the calc example. However, there are...
13789
Ric Klaren
izniegoed
Nov 1, 2004 11:33 am
... Don't get the error here. Probably something temporary. ... Well it gives a lot better score than yahoogroups and a faster way to browse the archives. ... ...
13790
Pete Forman
pete_forman
Nov 1, 2004 11:51 am
... Raise the matter on news:gmane.discuss if it persists. There was such a problem reported on 2004-10-19 but it should have been fixed. ... That gets my...
13791
Ric Klaren
izniegoed
Nov 1, 2004 1:37 pm
... Once more *sigh* It would have been such a nice language without it ;) ... It looks like it's related to to method public void gen(AlternativeBlock blk); ...
13792
Maassen, H.A.M.
coamithra
Nov 1, 2004 2:17 pm
Thanks the helpful tips on visualizing trees - the ASTFrame is a nice debugging tool. It turns out that the difficulties I had in visualizing trees were...
13793
Maurice van der Pot
griffon26@...
Nov 1, 2004 3:02 pm
It is explained on this page: http://www.antlr.org/doc/trees.html Good luck, Maurice -- Maurice van der Pot Gentoo Linux Developer griffon26@......
13794
Marq Kole
marqkole
Nov 1, 2004 4:17 pm
... blocks of ... it ;) ... replaced by ... followed by an ... replaced by ... single action ... generated ... alternative ... Adding an ... 100% of the ... ...
13795
amohombe
Nov 1, 2004 6:22 pm
Is there any javascript grammar for ANTLR? I was not able to find one for ANTLR :(. Thanks in advance, Ahmed....
13796
Terence Parr
parrt2000
Nov 1, 2004 6:53 pm
... ST's autoindented output feature is super sweet for this sort of thing ;) Ter -- CS Professor & Grad Director, University of San Francisco Creator, ANTLR...
13797
Terence Parr
parrt2000
Nov 1, 2004 6:59 pm
Hi Paul, Great stuff! Shall I post as an "article" or addendum to my AST min/max article on antlr.org? Thanks, Ter -- CS Professor & Grad Director, University...
13798
Michael Studman
michael_studman
Nov 2, 2004 12:41 am
Hi Andy. Thanks for giving my grammar a test drive! It seems strange that annotations aren't stored in the AST - that was not my intention at all (and I think...
13799
Anakreon
anakreonmejdi
Nov 2, 2004 11:10 am
... There is for JScript. See http://storm.cs.unipi.gr/~anakreon/aspa.html The license is GPL. Anakreon...
13800
amohombe
Nov 2, 2004 11:44 am
... Thank you very much. Ahmed. P.S. Maybe you could put the grammers on the Antlr.org site, so that others find it directly :)....
13801
Anakreon
anakreonmejdi
Nov 2, 2004 2:05 pm
... It is there too....
13802
Maassen, H.A.M.
coamithra
Nov 2, 2004 2:36 pm
Hello, I hope I'm not annoying with my newbie-ish questions, but here's another one :). I'm getting the hang of the tree construction actions in the parser,...
13803
amohombe
Nov 2, 2004 2:37 pm
... Well, there is: "ASP Anakreon Mejdi Wed Sep 15, 2004 03:24 The grammar of asp contains lexers for plaintext" I know no one who is so smart from that phrase...
13804
Michael Studman
michael_studman
Nov 2, 2004 10:39 pm
Hi Andy. I've checked my grammar and as far as I can tell annotations are included in the AST. In most places ANNOTATION nodes are placed under the MODIFIERS...
13805
Terence Parr
parrt2000
Nov 2, 2004 11:18 pm
Sorry...this is my fault. When I strip newlines from the descriptions, it leaves in \r as I forgot PCs will send that over a browser link during POSTs....
13806
hero_onethousand
hero_onethou...
Nov 3, 2004 12:37 am
I apologize in advance if this topic has been discussed, but I had no luck searching the archive. I am using a tree parser to perform semantic...
13807
s2jafer1
Nov 3, 2004 11:07 am
In my coding i am giving a input for the token, "source" in the parser which should accept a string containing "whitespaces" and "tab characters" , if the...
13808
whaefelinger
Nov 3, 2004 2:34 pm
Hi, I'm also about to write a code generator for Python and indeed indendation levels, empty statements etc are causing some head- aches. I solved the...
13809
Maassen, H.A.M.
coamithra
Nov 3, 2004 4:20 pm
Hello, When defining literals in the parser-grammar (stat: "if" expr "then" stats "endif";) the generated parser will be case sensitive, and the caseSensitive...
13810
Alexey Demakov
al_l_ex
Nov 3, 2004 4:36 pm
antlr-2.7.4/metalang.html#_bb2: In parser rules, strings represent tokens, and each unique string is assigned a token type. However, ANTLR does not create...
13811
Maassen, H.A.M.
coamithra
Nov 3, 2004 4:50 pm
Never mind - found it *blushes* I'm just going to go ahead and blame the manual ;) ... From: Maassen, H.A.M. Sent: Wed 11/3/2004 3:20 PM To:...
13812
thoth2487
Nov 3, 2004 4:56 pm
Hi to all, I've a very simple language in which there are IDENTifiers and jump LABELs. An IDENTifier start with ('a'...'z39;)|('A'..39;Z') and continue with...
13813
John D. Mitchell
johnm-antlr@...
Nov 3, 2004 5:49 pm
... [...] ... Stop trying to do that in the lexer. Let the lexer return the ID for both and then have your parsing rules distinguish between ID ":" being a...
13814
Paul J. Lucas
ypjl
Nov 3, 2004 7:37 pm
... What's wrong with using a syntaxtic predicate in the lexer? Just because a label happens to have the same character pattern as an identifier doesn't mean...