munificent / bantam Goto Github PK
View Code? Open in Web Editor NEWA simple demo app for Pratt parsing
License: Other
A simple demo app for Pratt parsing
License: Other
Forgive me, but I was reading your tutorial and then looking at the code and noticed this.
bantam/src/com/stuffwithstuff/bantam/BantamParser.java
Lines 19 to 20 in 05276a6
The parselets are registered into a HashMap, which means that CallParselet will overwrite the GroupParselet, right?
Is this intended?
Hi!
I have ported Bantam to C++11.
It is available at https://github.com/jwurzer/bantam-cpp.
It would be great if you put a reference to the C++ port in your Readme file so that my C++ port can be found easily :-)
My C++ version corresponds as best as possible to this original Java version. It uses C++11. The C++ port is implemented as a header-only library. All necessary files are located in the include directory. The member functions are implemented directly in the according class in the header file instead of in a separate C++ file. This also has the advantage that it looks even more like the Java version. Only the test program for testing the implementation is located in the C++ file src/main.cpp. This C++ port uses unique pointers and namespaces.
There is also another C++ port available (by stefanboca) which uses C++20, shared pointers instead of unique pointers, no namespaces and extra C++ files for most longer implementations (no header-only). This other C++ port can be found under https://github.com/stefanboca/bantam-cpp. Maybe you want also add this other C++ port to your Readme.
Best regards
Jürgen
Hello,
I just wanted to share that I've made a Kotlin port that can be found here:
Hi!
Now I have ported Bantam also to Rust.
It is available at https://github.com/jwurzer/bantam-rust.
It would be great if you put a reference to the Rust port in your Readme file so that my Rust port can be found easily :-)
This Rust version is similar in structure and design to the original Java version. The error handling is done with the panic!
macro for simple unrecoverable error handling in the master
branch. For error handling with recoverable errors the branch with-error-handling
exist. This with-error-handling
version is a little bit more complex but has the advantage that the program does not terminate immediately in case of a wrong parsed expressions.
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.