pascalgn / java-ast Goto Github PK
View Code? Open in Web Editor NEWJava Parser for JavaScript/TypeScript (based on antlr4ts)
License: MIT License
Java Parser for JavaScript/TypeScript (based on antlr4ts)
License: MIT License
I am the Director for the FIRST Tech Challenge in Illinois. We are working on methods to translate our java code to java script. . The robot simulator is at https://www.vrobotsim.online/homepage.html . The Virtual Robot Simulator (VRS-and how to use it) teaches students how to code in a dynamic process that replicates the FIRST Tech Challenge game environment. Right now we hard code the “java-js dictionary”. I’m thinking that there might be a better way. I understand that FTC SIM Canada pixel pad uses one of your translators to move Java code to Java script.. I have a similar problem but I need help making it happen. Jonathan Weiland [email protected]
Yarn 2 supports PnP modules, and it seems like the integration of this library and antlr4ts
causes issues :
● Test suite failed to run
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (.yarn/cache/antlr4ts-npm-0.5.0-dev-7e0fc8988a-0f206ef5ef.zip/node_modules/src/tree/xpath/XPathLexer.ts:18:33)
at Object.<anonymous> (.yarn/cache/antlr4ts-npm-0.5.0-dev-7e0fc8988a-0f206ef5ef.zip/node_modules/src/tree/xpath/XPath.ts:16:1)
Was unable to debug and check why, but without PnP it seems to work correctly.
And idea?
The currently published version seems stale. Can you publish a new version with the latest grammars?
Example:
class B extends A {
public B() {
super(1);
}
}
currently causes:
line 3:9 missing ';' at '('
and the parsed expression doesn't contain arguments, just the super
token.
I suspect the cause is here: https://github.com/urish/java-ast/blob/b7be319412df3585e75f0d573e4bc2820dee0a93/src/parser/JavaParser.g4#L527
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.