Add SyntaxDefinitionHelper

Closes #2281.