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

Expose syntax errors for mini-languages #310

Open
andychu opened this issue May 15, 2019 · 3 comments
Open

Expose syntax errors for mini-languages #310

andychu opened this issue May 15, 2019 · 3 comments

Comments

@andychu
Copy link
Contributor

andychu commented May 15, 2019

  • echo -e -- invalid backslash escape
  • glob, in GlobToERE -- there are some backslash issues, invalid character class, etc.
    • parser returns self.warnings which are not exposed!
  • PS1 -- invalid backslash escape
  • brace_range: we have errors, but we blame the whole thing rather than individual tokens
    • TODO: since this must appear on a single line, we can do the math to print the
      correct syntax error?

Other:

  • Invalid utf-8 for ${s:1:3} -- needs location info
    • and ${#s}, although I'm considering changing that to bytes!
@andychu
Copy link
Contributor Author

andychu commented Jun 27, 2019

Added strict-glob and strict-backslash spellings for this (not implemented)

@andychu
Copy link
Contributor Author

andychu commented Jun 27, 2019

prerequisite: SimpleLexer has to deal with token instances with locations, instead of (Id, val) pairs

@andychu
Copy link
Contributor Author

andychu commented Jan 5, 2022

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

No branches or pull requests

1 participant