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

Ignore spaces around commas (or at least after). #11

Closed
pedrofurla opened this issue Sep 3, 2019 · 1 comment · Fixed by #12
Closed

Ignore spaces around commas (or at least after). #11

pedrofurla opened this issue Sep 3, 2019 · 1 comment · Fixed by #12
Milestone

Comments

@pedrofurla
Copy link
Contributor

pLam> [1, 2]
"parser" (line 1, column 4):
unexpected " "
expecting "[", digit, identifier, "\\" or "("
pLam> [1 , 2]
"parser" (line 1, column 4):
unexpected ","
expecting space, "[", digit, identifier, "\\" or "("
pLam> [1 ,2]
"parser" (line 1, column 4):
unexpected ","
expecting space, "[", digit, identifier, "\\" or "("

Surprisingly, spaces after [ are ok.

pLam> [ 1,2]
|> reductions count               : 0
|> uncurried β-normal form        : (λfl. (l (λfx. f x)) (λfl. (l (λfx. f (f x))) (λfl. f)))
|> curried (partial) α-equivalent : (λf. (λl. ((l 1) (λf. (λl. ((l 2) (λf. (λl. f))))))))
@pedrofurla
Copy link
Contributor Author

PR Fixes #11

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

Successfully merging a pull request may close this issue.

2 participants