syntax::State: API cleanup

Signed-off-by: Frank Mertens <frank@cyblogic.de>