Switch parser to functional style.

Conflicts:
	src/compiler/syntax/parser.ts
Remove unnecessary syntax token class.
Emit syntax elements in the same order as the SyntaxKind enum.