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

Symbol Tables... they're a thing #2

Open
heyitsmass opened this issue Sep 25, 2022 · 0 comments
Open

Symbol Tables... they're a thing #2

heyitsmass opened this issue Sep 25, 2022 · 0 comments

Comments

@heyitsmass
Copy link
Owner

The project is again being redesigned to follow a stricter lexer-parser structure. A grammar will be better outlined to follow common EBNF grammar notation.

  • A lexer will gather symbols from the file, rejecting any invalid symbols.

  • A parser will parse the list of symbols, and given an expression grammar, determine validity.

  • During validation checks, the parser constructs any objects necessary for a python dictionary or array.

    • If a validation check fails (incorrect grammar), the parser will reject the input file.
  • An attempt at linting will be made to determine potentially invalid constructs post-parse, but JSON is an object notation language, not a programming language.

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