1 2 3 4
grammar TreeConstruct; options { output=AST; } prog : first=DIGIT other+=DIGIT* -> ^($first $other*) ; DIGIT: '0' .. '9' ; WS: (' '|'\r'|'\n') {$channel=HIDDEN;};
(1 2 3 4)