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

[WIP] Lexer first pass #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

[WIP] Lexer first pass #15

wants to merge 1 commit into from

Conversation

nateemerson
Copy link
Contributor

DO NOT MERGE

@nateemerson nateemerson added the xX🚧⚠💥😰Xx DO NOT MERGE - likely WIP label Aug 14, 2022
const delimiters = [" ", "\n", ":", "(", ")", "{", "}"];

const gruToken: (source: string) => GruToken | null = (source: string) => {
type mapEntry = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for defining types inside the function instead of outside?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also AFAIK it's a convention write type aliases in Pascal case:
mapEntry => MapEntry

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah I'll fix that. Like I said my TS is pretty bad, esp w/ this stuff I'm just flying by the seat of my pants most of the time 😅

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey, it's not THAT bad! ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
xX🚧⚠💥😰Xx DO NOT MERGE - likely WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants