terminal Tab /\t/ action { print "saw tab!\n"; }
concrete production foo
f::Foo ::= Tab i::Id
{
} action {
print "saw foo with id " ++ i.lexeme ++ "\n";
}
In action blocks only, there is a ‘print’ action available, generally for testing and debugging purposes only.
print
;