I am planning to use PCCTS 1.33 in a compiler course I am teaching. The reasons I am using this instead of ANTLR 2.x are - PCCTS 1.33 comes standard with...
6996
ksvanhorn <kevin.v...
ksvanhorn
Jan 8, 2003 4:53 pm
Why is it that semantic predicates are hoisted but syntactic predicates are not?...
6997
John D. Mitchell
johnm-antlr@...
Jan 8, 2003 6:16 pm
... [...] ... I've used both for a long time. [Wow, has it really been a decade?] What's the nature of your course? I.e., is it a basic undergraduate ...
6998
mzukowski@...
montyzukowski
Jan 8, 2003 6:51 pm
Semantic predicates are not hoisted, except in lexers, for antlr 2, which this mailing list is about. comp.lang.pccts is still active for PCCTS. For a...
6999
mzukowski@...
montyzukowski
Jan 8, 2003 6:56 pm
Mostly you get rule entry and exit plus you can see the lookahead at the time of each match. You still need to look at the generated code to figure out what...
7000
micheal_jor <open....
micheal_jor
Jan 8, 2003 8:07 pm
... Using PCCTS ... documentation, to ... In any case, the contents would be broadly applicable to ANTLR 2.x as well. Right? ... are using ... This is a real...
7001
Tom Moog
tmoog@...
Jan 9, 2003 1:11 am
The Book is available online in .pdf format. There is a link to it from my web page. The "Notes for New Users" have been updated since the Book was published....
7002
John D. Mitchell
johnm-antlr@...
Jan 10, 2003 3:19 am
... [...] ... I'm sorta ambivalent on that point. For beginners, I very strongly prefer that the course materials match (since, for example, students already...
7003
lgcraymer <lgc@......
lgcraymer
Jan 11, 2003 2:13 am
Just to throw in my 2 cents. PCCTS has a definite documentation advantage over ANTLR 2 for teaching purposes; that should change after Ter puts together a set...
7004
cintyram <cintyram...
cintyram
Jan 11, 2003 4:12 pm
hi , this is with reference to the discussion on this list a few weeks ago on the same topic. then i was of the opinion that, using an abstract class could...
7005
Ruslan Zasukhin
sunshine@...
Jan 12, 2003 10:58 am
on 1/11/03 6:12 PM, cintyram <cintyram@...> at cintyram@... ... Interesting idea, and it may works I think. Payment slow down on each call, because...
7006
xadeck <decoret@.....
xadeck
Jan 12, 2003 11:40 am
I am trying to parse quoted atring, that is "lfkgslfkhg" My basic rule is: STRING: '"39; ~'"'+ '"39; How can I do to allow protected quote inside a STRING, that is...
7007
Xavier Decoret
xadeck
Jan 12, 2003 3:35 pm
I have actions in my parser that throw SemanticException (used to identify context dependent errors). I would like to provide this Exception with a line number...
7008
John D. Mitchell
johnm-antlr@...
Jan 13, 2003 2:28 am
... Check out the various examples such as the C lexer. John...
7009
John D. Mitchell
johnm-antlr@...
Jan 13, 2003 2:32 am
... [...] ... I must be missing something... I don't understand how that's any better than using e.g., a macro preprocessor. Happy New Year, John...
7010
Andreas Rueckert
a_rueckert
Jan 13, 2003 9:07 am
Hi! Are you aware of a PGN grammar for Antlr? (Portable Game Notation, a format to store chess games). Ciao, Andreas PS: ArgoUML now uses the Antlr classfile...
7011
cintyram <cintyram...
cintyram
Jan 13, 2003 1:55 pm
... for big ... actually that [ macro preprocessor ] is what i had in mind for an initial implementation . because to generate target code in different ...
7012
Ruslan Zasukhin
sunshine@...
Jan 13, 2003 2:03 pm
... Excuse me. You want to say that exists some macro preprocessor that can do this ? I.e. Join TreeParser grammar with Action grammar of C++ or Java ? and...
7013
Anakreon Mejdi
anakreonm
Jan 13, 2003 2:13 pm
There is annotation-20020416.zip in the files section at yahoo. Here is an example: class CalcTreeWalker extends TreeParser; expr <init> ... ; in a separate...
7014
Ruslan Zasukhin
sunshine@...
Jan 13, 2003 2:21 pm
... But if names as <init> must be unique in the global scope ? I.e. Can I in the next rule use it again ? (it seems I cannot) And I wonder, if exists info...
7015
Anakreon Mejdi
anakreonm
Jan 13, 2003 2:28 pm
<init> is replaced with the code put in the file.act after @init You can write <init> as many times as you wish. If the code which coresponds to <init> is...
7016
cintyram <cintyram...
cintyram
Jan 13, 2003 4:00 pm
Thank you for pointing me to the tool . essentially this is what i was going to do too!! may be i would have chosen different symbols instead of @ etc .. ; but...
7017
mzukowski@...
montyzukowski
Jan 13, 2003 4:25 pm
Take a look at the java grammar or the gcc grammar for examples of string parsing. Monty ... From: xadeck <decoret@...> ...
7018
John D. Mitchell
johnm-antlr@...
Jan 13, 2003 7:24 pm
... [...] ... Well, besides the one already mentioned: * Write one yourself * Use something crappy like CPP * Use something like M4 * Use something like Tcl *...
7019
John D. Mitchell
johnm-antlr@...
Jan 13, 2003 7:39 pm
... [...] ... I've remarked on this before but not in a year or two so... :-) I'm very much of the opinion that for any non-trivial translator, the only thing...
7020
mzukowski@...
montyzukowski
Jan 13, 2003 7:56 pm
Getting into the deeper issue of AST design, I highly recommend studying the CIL project. http://manju.cs.berkeley.edu/cil/. They parse C and GCC and MSVC...
7021
micheal_jor <open....
micheal_jor
Jan 14, 2003 12:18 am
Hi, I am a total ANTLR TreeParser newbie. Having read the docs again, I felt that Resolvers and SymbolTale population are things that it should be possible for...
7022
micheal_jor <open....
micheal_jor
Jan 14, 2003 12:24 am
... studying the ... GCC and ... The extent of the C->CIL transforms does seem a bit extreme in many places (just flicked thru the info on the site). I'd be...
7023
micheal_jor <open....
micheal_jor
Jan 14, 2003 12:32 am
... the only ... auxiliary data ... This can be interpreted as "strive for no [minimal?] embedded action code in parsers for non-trivial translators". Is this...
7024
John D. Mitchell
johnm-antlr@...
Jan 14, 2003 1:20 am
... Basically. The actions should only do what is necessary and sufficient so as to be able build the initial AST (and any necessary auxiliary data ...