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

Parse subset of the C# code to the Expression #433

Open
dadhi opened this issue Nov 14, 2024 · 2 comments
Open

Parse subset of the C# code to the Expression #433

dadhi opened this issue Nov 14, 2024 · 2 comments

Comments

@dadhi
Copy link
Owner

dadhi commented Nov 14, 2024

This is the last missing step in library,

I have my AST in a form of Expression,
I can Compile or I can output a C# code from it
I may even output the expression as a C# code to create the same expression.
I can convert between LightExpression and Expression and vice versa.

Now, I think, I need to write a parser, and I will have the complete compiler independent of Roslyn.
This may be ideal for the small code-gen tasks.

Update:

Start from the small subset, e.g. from the Method calls. This way, I may start parsing the output of ToExpressionString().
Ideally, at the end I should be able to parse output of the ToCSharpString().

@sebastienros
Copy link
Contributor

c.f. https://github.com/Stillpoint-Software/hyperbee.xs

@dadhi
Copy link
Owner Author

dadhi commented Feb 14, 2025

@sebastienros Great, will check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants