간단한 컴파일러를 만들려고 하는데 모르는게 있어서 질문 올립니다.
예를 들어
program
: start_section statements
;
start_section
: START
;
statements
: instruction operand
| instruction operand statements
instruction : IDENTIFIER
operand : IDENTIFIER | IDENTIFIER ',' operand
이런게 있다고 하면
statements
: instruction operand <-- 이부분에서 instruction, operand 의 스트링을 알고 싶습니다.