Hi,
should the both version use the same grammar? I have an objectmacro, which is compialbe in sablecc-4.beta.4.zip version but not in objectmacro-2.0.zip version.
$ cat simple.objectmacro
$comment$
Template fuer die Erzeugung von SQL Abfrage.
Compile-Befehl fuer JAVA:
objectmacro sqltemplate.objectmacro -t java -d ../../../target/generated-sources/objectmacro -p de.htwsaarland.sql.imp.template
Autor
Hong Phuc Bui
$end$
$comment: ========= create_table ===== $
$macro: simple(name)$
hallo $name !!!!!
$end: simple$
$ java -jar .../objectmacro-2.0/lib/objectmacro.jar simple.objectmacro
ObjectMacro, part of SableCC version repository-snapshot
by Etienne M. Gagnon <ega...@j-meg.com> and other contributors.
Compiling "simple.objectmacro"
*** SYNTAX ERROR ***
Line: 1
Char: 1
Syntax error on unexpected invalidcharacter token "$":
expecting: EOF.
$ java -jar .../sablecc-4-beta.4/lib/objectmacro.jar simple.objectmacro
ObjectMacro, part of SableCC version 4-beta.4
by Etienne M. Gagnon <ega...@j-meg.com> and other contributors.
Compiling "simple.objectmacro"
Sincerely
Hong-Phuc
PS: I did post an other one, but Google Group does not show it. So if the old post will be shown some time, just remove it.