Thanks again for your help up to now. Albeit your suggestion solves the problem as I stated it, I was wrong to state it the way I did. I wanted to simplify my...
I noticed that the Java engine contains constants that are not declared as final (with a note from the author not to change the values). Is this on purpose or...
When there is an error in the 'test grammar' window, and I click on the error line, the cursor in the source window is not placed over the error, so I have to...
Dear fellow GP users, I am pleased to announce ASTParser 1.0, an application that can be used to create a parser that can convert a source code file directly ...
Hello Achilleas, I think you have done some fantastic work with the AST parser. Congratulations!!! I saw your source-code and saw that you are actually writing...
Dear Pavan, The ASTParser works in a very simple way: 1. each class is linked to a rule. 2. each member of a class is linked to one of the rule's symbols. Then...
Hi Achilleas, That sounds neat. I have one question. How do you treat rules that have multiple ways of reduction. For example if: <Procedure> ::= <Type>...
Hello everyone, I am trying to write a grammar which is actually for two different languages fitted together. Based on the scope, a different lexer/parser is...
Hi Pavan, and thanks for the interest. In order to manage rules that have multiple clauses, one has two declare an empty super class, and one class that...
I added a new capability: base class member bindings. Now one can write a base class that contains all the interesting fields, and have subclasses do the...
Hello everyone, I have some parser rules which are as below (only a snippet of the complete grammar): identifier = ({Letter} | '_') ({Alphanumeric} | '_')* ...
Consider the line based log file: their arbitrary lines \n # comment \n @our structured line \n @our structured line 2 \n another of their % ^ abitrary lines ...
From what I can see you declare a terminal that contains a rule: identifier = ({Letter} | '_') ({Alphanumeric} | '_')* <integral_type> I don't know if it is...
Oh, the <integral_type> is a rule which is on the next line. I guess you mistook it as being part of the "identifier" terminal. I guess that is probably...
hello all, First of all, let me congratulate the author of this wonderful parsing system I have 1 request though, I've been working on a parser for Visual...
I have already given you the solution: terminals don't include rules, but rules include terminals. You should change your grammar to: <identifier> ::=...
scrept wrote: [...] ... Yes. It is possible, because conflict resolution is programmable in the parser generator on first hand and because grammar designers on...
"Pavan Podila" wrote: [...] ... You have found an inconsistency in GOLD because conflicting terminal definitions are reported but conflicts between a terminal...
Mat Hounsell wrote: [...] ... [...] Context free grammars are best suited for languages where most of the word to be recognized is meaningful and the parts...
Mat Hounsell wrote: [...] ... Cfg's are best suited for languages whose words are mostly meaningful and those parts that are not meaningful are distinguishable...
... If two context free languages L1 and L2 "fit together" in one new language L that is still context free, then there exists a grammar that is LALR(1), i.e....
Hello, I have a need to have something like .* in lex/yacc. This I believe is popularly used in parsing Comments. I was wondering how I could have it part of...
What I want is effectively like a comment, like /* ... */ Just that instead of /* it is '{' and instead of */ it is '{'. I want all the text within the braces...
Hello everyone, Sorry for not being very active in the Yahoo Group this month (and last). I'll be giving a midterm next week and will finally have some free...
Devin Cook
GOLD-Admin@...
Oct 13, 2005 3:45 am
1867
Hi, Sorry about the delay in responding. Do you still need help? - Devin...
Devin Cook
GOLD-Admin@...
Oct 13, 2005 3:45 am
1868
This project looks great! Do you want me to host your project or link it from the Jave Engine page? I'll try to update the website in the next couple of days. ...
Devin Cook
GOLD-Admin@...
Oct 13, 2005 4:41 am
1869
Some parts of the Visual Basic 6 syntax are quite difficult to parse. I have done some work on a VB 6 grammar, but never finished. The array subscript issue...