Ok, now the whole thing makes sense. There are two approaches to having literal strings in parser rules. 1) put double quoted strings directly in parser rules ...
A follow up question: Does it matter where the tokens section is placed? In otherwords, is there a significant functional difference between placing tokens for...
It doesn't really matter unless you split up your lexer and parser into separate .g files, as you might if you have one lexer that is used by several parsers. ...
Terence Parr, Everyone- I just found this: The SLK Parser Generator http://home.earthlink.net/~parsersinc/slk/ The first sentence reads: "The SLK parser...
Hmm...initial inspection seems to indicate they have misunderstood a lot of stuff, but may have a nice tool. For example, I like this quote: "In practice,...
Hmm...they claim to do k>1 but then say this in their discussion of analysis: http://home.earthlink.net/~parsersinc/doc/llkparse.html "The problem with objects...
Hi, ... -> Error prone one typo and you have a new token.. ... -> More structural imho, newer antlr's generate warnings for tokens just defined outside the...
Hi, ... Does not matter much, unless you split your antlr lexer/parser/treewalker hierarchy in separate files, then you have to be really structured with this...
Hi: I just installed the antlr plugin for eclipse... the .java files are being generated but the import packages cannot be found. Please advise. -- Dave...
Use the project properties to add the plugin 'org.antlr_x.x.x' to the list of required plugins and 'org.antlr_x.x.x/antlrall.jar' to the list of required ...
Hi, Thought I saw a reference to this on the list a while back. I'd appreciate being included in the early adopters/developers loop so that I can keep the C#...
Michael, Is C# ready do you think to be included in the main release? If so, I can get you access to our repository so you can keep in sync. Ter ... -- ...
Terence Parr- Thanks for humoring me. You may recall that, having only ever used ANTLR, I don't know a whole lot about this domain. The real reason I asked is...
Cook & Welsh's approach is kinda hacky too in that they assume you want to work with a parse tree and not an AST. If you're sticking with antlr then take the...
... Here is the dissertation that the NetBeans editor's lexer is based on: http://citeseer.nj.nec.com/wagner98practical.html The incremental lexer is chapter 5...
It would be nice to have an (optional) framed version that had a outline of the documention to the left. It would be nice also if the HTML pages print...
Hi, I have a question about grammar design that I haven't seen an answer to in my readings. I may have just not put the pieces together (sorry!), or it may...
... I would suggest doing just a simple loop that lets any match (i.e., be loose). Then use an action to determine if the semantics are right. :) Ter -- ...
No, it's not possible or if possible it's not practical. Recommended practice is to grammatically recognize all of them possibly multiple times. Then...
OK, it's another one of those 'when is the next official point release' question... Antlr seems to be creeping slowly-ish towards 2.7.3. Is this an asymptote,...
mzukowski writes: m> No, it's not possible or if possible it's not practical. m> Recommended practice is to grammatically recognize all of them m> possibly...
what surprises me is why there are no commercial parsers based on LL(k); if it can achieve so much [which i am getting convinced of gradually]better than the...
... Actually there are plenty of commercial apps. It's just that nobody seems to advertise. For example, projectbuilder on mac os x has a C/ObjC/C++ parser...
Hi everybody, I'm new to Antlr. I want to develop a parser for a language. In the language it uses REM and ' as keywords for comment. I wrote the following...
Hi Brian Smith- ... Yea, an algorithm for incremental LL(k) parsing would be most cool. Then I wouldn't have to scrap my ANTLR grammars! <grin> Below are the...
... restructuring ... If I may offer a suggestion, I've spent a lot of time poring over the documentation, and it would be worlds easier if care were taken to...
... I made one extension to define TokenTypes as a C# enum rather than a class with public const int members. Pretty minor, but it did make it easier to ...