Comments (2)
Yes, it generates an AST from code such as in Program.cs and you can use the LuaReconstructor to generate code from an AST.
But I must warn you, this parser is buggy and won't work all the time. Use it at your own risk, I'm planning to rewrite it as soon as I'm done with GParse.
from loretta.
Update to this issue.
Post-rewrite, the way to convert an AST back into code is calling .ToString()
, .ToFullString()
or .WriteTo(TextWriter)
on the SyntaxNode
.
from loretta.
Related Issues (20)
- Intersection and Union types have bitwise operator diagnostic reported incorrectly
- A better website
- Loretta incorrectly generates IScope.ContainedScopes for certain statements.
- NormalizeWhitespace should insert/preserve spaces between call arguments.
- Implement Luau interpolated strings HOT 1
- NormalizeWhitespace doesn't take in account possible comments between nodes
- Parameter names break function type parsing HOT 3
- Lexer recognizes hex integer as float HOT 1
- Can you add couple a flags? HOT 3
- NormalizeWhitespace doesn't space out double unary minus
- type should be contextual
- ArgumentOutOfRange exception when retrieving diagnostics when strings are used as statements
- 'continue' is treated as a keyword even when it's disabled on LuaSyntaxOptions
- Line breaks on Multi-Line strings are handled incorrectly
- Lua 5.1 warning about nested long strings/comments HOT 1
- ObjectDisplay outputs escapes instead of original character
- SyntaxFactory is missing constructors
- SyntaxFactory string literals incorrectly output nodes HOT 1
- SyntaxFactory has overloads where the body is not mandatory
- Make all fields in `.Update` optional HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loretta.