Skip to content

Add a luau library with support for parsing. #32

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

Merged
merged 22 commits into from
Dec 20, 2024
Merged

Add a luau library with support for parsing. #32

merged 22 commits into from
Dec 20, 2024

Conversation

aatxe
Copy link
Collaborator

@aatxe aatxe commented Dec 19, 2024

This PR adds a luau library to queijo that allows the use of the Luau parser to get a table AST. As of the time of writing, this only supports expressions, but statement support is coming.

@aatxe aatxe marked this pull request as ready for review December 20, 2024 00:23
@aatxe aatxe merged commit 41d2431 into primary Dec 20, 2024
3 checks passed
green-real pushed a commit to green-real/lute that referenced this pull request May 19, 2025
* add infra for queijo luau library

* initial cut of parsing expressions

* added an example to test the expression parsing

* clean up setupState a bit

* add missing source files, i got got by the gitignore

* clean up somewhat

* partial statement support

* the rest of statements

* little fixups

* AstName is 1 entry.

Co-authored-by: vegorov-rbx <[email protected]>

* move pretty print script to std

* clean up pp a bit more

* fix horrible formatting

* rename tableRef to seen

* oops

* spaces, not tabs

* more, ick

* some serialization for function AST nodes

* de-indent sorting function

---------

Co-authored-by: vegorov-rbx <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants