ftomassetti / antlr-kotlin Goto Github PK
View Code? Open in Web Editor NEWSupport for Kotlin as a target for ANTLR
Support for Kotlin as a target for ANTLR
Somehow I should add the target to the classpath of the forked process
I get the following compile error when using the kotlin target: Unresolved reference: MiniCalcLexer
Perhaps because there are some remnant of MiniCalcLexder in Kotlin.stg?
See for example: https://github.com/ftomassetti/antlr-kotlin/blob/58a8cbeffb8ebdf8e1 34fbaad0d215a4342f9c56/antlr-kotlin-target/src/main/resources/org/antlr/v4/tool/templates/codegen/Kotlin/Kotlin.stg#L245
Using this grammar https://gist.github.com/exaV/fcbb1fcfd0478a57ffd5f4402207291a
As suggested by Mike
You should take a closer look at https://github.com/antlr/antlr4/tree/master/runtime-testsuite (the runtime test suite that runs tests for all targets). The tests run automatically on appveyor and travis and you can run them locally (e.g. via
mvn test
), but you have to integrate your runtime via another template file (see https://github.com/antlr/antlr4/tree/master/runtime-testsuite/resources/org/antlr/v4/test/runtime/templates) and some glue code (see https://github.com/antlr/antlr4/tree/master/runtime-testsuite/test/org/antlr/v4/test/runtime).
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.