Skip to content

Lexer layout rule #75

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Lexer layout rule #75

wants to merge 3 commits into from

Conversation

adamchristiansen
Copy link
Member

Implementation of the layout rule in the lexer to automatically insert {, }, and ; tokens based on indentation.

Automcatically inserted `{` and `}` track the indentation (i.e., column
number) of the context that they delimit.
The `TextChars` iterator was added for use in the lexer, which does the
following:

- Byte order mark (BOM) handling.
- Reject invalid control characters (closes #74).
- Keep track of the current column position.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

Layout rule for new syntax
1 participant