Literals doesn’t exists any more in Sdf2 grammar.

Stratego-Sdf2.def:
—————————–
variables %% section
LiteralMetaVar -> Literal

lexical syntax
“L” -> LiteralMetaVar
—————————–

A solution is to introduce a new production to factorise ‘StrCon’ and ‘IdCon’
with the name ‘Literal’ all other symbols like ‘Label’, ‘FunctionName’, ‘AFun’.

Submitted on 10 January 2007 at 20:46

Log in to post comments