Hi. I recently downloaded the ANTLRWorks 1.4.1 bundle for Mac and
installed. I also have a copy of the book, and was going through the
various examples. I got all the way to the tour/trees examples, the
Expr.g portion, and I ran into a problem.
I can create the Lexer and Parser files, but when I
Sorry to bother. I was having the same problem but I'm not quite getting
what the fix is .Should the entire init stuff be commented out as in
; public Calc() { super(); } // calls java.lang.Object()
;.method public init()V
; aload_0
; invokenonvirtual java/lang/Object/init()V
; return
;.end
the class.
The tree grammar approach is superior in the general case, but an
important lesson for students to learn the value of tools as opposed to
automatically hand coding solutions--exposing students to alternatives
is good for them.
--Loring
- Original Message
From: bill punch pu
Let me say that I really like ANTLR and have been using both books
extensively. Thus I hope this is taken as constructive criticism.
I think what Ray is saying is what I've been running into. I'm teaching
the Compiler's class (for the first time) and using the ANTLR reference
book. It has been a