Grammar of Objectmacro-2.0 and Objectmacro in Sablecc4-beta.4

13 views
Skip to first unread message

Phuc Luoi

unread,
Jan 27, 2022, 10:18:43 AM1/27/22
to SableCC
Hi, 
should the grammar of  Objectmacro-2.0 and Objectmacro in Sablecc4-beta.4 be the same? I have an objectmacro file, which is compileable in Objectmacro from Sablecc-4-beta.4.zip but not in Objectmacro from Objectmacro-2.0.zip:

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-maven-port/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"


Content of 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$

Reply all
Reply to author
Forward
0 new messages