Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

프로젝트 ENil 관련 이슈 #60

Open
gina0605 opened this issue Dec 5, 2023 · 1 comment
Open

프로젝트 ENil 관련 이슈 #60

gina0605 opened this issue Dec 5, 2023 · 1 comment

Comments

@gina0605
Copy link

gina0605 commented Dec 5, 2023

안녕하세요,

프로젝트의 파서가 ENil을 잘 인식하지 못하는 경우가 있는 것 같습니다.
다음과 같이 입력할 경우 ENil이 아니라 EName으로 인식합니다.

nil

nil 뒤에 whitespace가 있는 경우에는 잘 인식합니다.


ExprParser.scala의 SELiteral을 보면 다음과 같이 구현돼있는데, 이 때문에 nil 다음에 whitespace나 )가 아닌 EOI가 들어올 때 파싱하지 못하는 것으로 보입니다.

(atomic("nil") ~ &(SP | ')') ~ push(ENil)) |
@MerHS
Copy link
Contributor

MerHS commented Dec 5, 2023

저희 프로그램 스펙상 전체 코드가 nil 하나만 있을때만 문제가 일어나기 때문에 딱히 문제는 없어보입니다.

큰 문제는 아니니 채점시에 수정하도록 하겠습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants