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

Empty language crashes alex with (Array.!): undefined array element #164

Open
andreasabel opened this issue Oct 10, 2020 · 0 comments
Open

Comments

@andreasabel
Copy link
Member

Alex does not seem to handle the empty language well. MWE:

alex --version
echo ":- [] ;" > Test.x
alex Test.x

gives

Alex version 3.2.6, (c) 2003 Chris Dornan and Simon Marlow
alex: (Array.!): undefined array element

I think Alex should report a proper error, or find a way to handle the empty language (e.g. by ignoring it as it can never match anything).

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

1 participant