forked from aatxe/lute
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a luau library with support for parsing. (aatxe#32)
* 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 <75688451+vegorov-rbx@users.noreply.github.com> * 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 <75688451+vegorov-rbx@users.noreply.github.com>
- Loading branch information
1 parent
f152df2
commit 41d2431
Showing
9 changed files
with
1,381 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
local pretty = require("@std/pp") | ||
local foo = luau.parseexpr("{} + 2") | ||
print(pretty(foo)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
struct lua_State; | ||
|
||
int luaopen_luau(lua_State* L); |
Oops, something went wrong.