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

How to genearate semanticAnalysis.js by myself? #326

Open
Re-TinyLin opened this issue Jan 10, 2025 · 1 comment
Open

How to genearate semanticAnalysis.js by myself? #326

Re-TinyLin opened this issue Jan 10, 2025 · 1 comment
Assignees

Comments

@Re-TinyLin
Copy link

Hi, I've just recently started learning about this program and have some questions about semantic analysis.

The language-support/src/syntaxValidation/semanticAnalysis.js looks like it's auto-generated, and I'm a bit curious how exactly this piece is generated? I hope you can give some guidance to better understand this project.

Best wishes!

@ncordon
Copy link
Collaborator

ncordon commented Feb 28, 2025

Hey @Re-TinyLin, we use https://teavm.org/ to transpile part of the neo4j parsing stack. Unfortunately the project transpiling it is not public yet and I don't know whether I'll be able to make it public.

The reason for doing that is to maintain the errors aligned with those on the core database product. TeaVM does an excellent job and let us transpile that codebase, which is Java and Scala mixed up, because it acts on the generated bytecode, differently to what other transpilers like ScalaJS do (which needs the code to be 100% Scala for example).

@ncordon ncordon self-assigned this Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants