Closed PLASLaboratory closed 1 year ago
(함수 호출 이외의 g4파일 문법 오류) 이상한 것이 맞습니다. 문법이 우측 결합이 불가능하게 작성되어 있네요; 다음 과제 부터는 문법을 수정해서 재배포할테니 걱정안하셔도 됩니다.
_Originally posted by @PLASLaboratory in https://github.com/CNUCOM/compilers_CNU_2022/issues/28#issuecomment-1251893081_
문법을 아래와 같이 수정하면 해당 문법에 대해서 파싱할 수 있습니다.
return_stmt : RETURN expr | RETURN expr ',' expr | RETURN;
(함수 호출 이외의 g4파일 문법 오류) 이상한 것이 맞습니다. 문법이 우측 결합이 불가능하게 작성되어 있네요; 다음 과제 부터는 문법을 수정해서 재배포할테니 걱정안하셔도 됩니다.
_Originally posted by @PLASLaboratory in https://github.com/CNUCOM/compilers_CNU_2022/issues/28#issuecomment-1251893081_