All Projects → shmatov → Antlr4 Calculator

shmatov / Antlr4 Calculator

Simple antlr4 calculator.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Antlr4 Calculator

Craftinginterpreters
Repository for the book "Crafting Interpreters"
Stars: ✭ 4,298 (+10645%)
Mutual labels:  compiler, interpreter
Ph7
An Embedded Implementation of PHP (C Library)
Stars: ✭ 422 (+955%)
Mutual labels:  compiler, interpreter
V8
The official mirror of the V8 Git repository
Stars: ✭ 18,808 (+46920%)
Mutual labels:  compiler, interpreter
Lbforth
Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
Stars: ✭ 293 (+632.5%)
Mutual labels:  compiler, interpreter
Tiny Compiler
A tiny evaluator and compiler of arithmetic expressions.
Stars: ✭ 680 (+1600%)
Mutual labels:  compiler, interpreter
Enso Archive
Looking for Enso, the visual programming language? ➡️ https://github.com/enso-org/enso
Stars: ✭ 305 (+662.5%)
Mutual labels:  compiler, interpreter
Enso
Hybrid visual and textual functional programming.
Stars: ✭ 5,238 (+12995%)
Mutual labels:  compiler, interpreter
Gwion
🎵 strongly-timed musical programming language
Stars: ✭ 235 (+487.5%)
Mutual labels:  compiler, interpreter
Webassemblyjs
Toolchain for WebAssembly
Stars: ✭ 566 (+1315%)
Mutual labels:  compiler, interpreter
Red
Red is a next-generation programming language strongly inspired by Rebol, but with a broader field of usage thanks to its native-code compiler, from system programming to high-level scripting and cross-platform reactive GUI, while providing modern support for concurrency, all in a zero-install, zero-config, single 1MB file!
Stars: ✭ 4,725 (+11712.5%)
Mutual labels:  compiler, interpreter
Rascal
The implementation of the Rascal meta-programming language (including interpreter, type checker, parser generator, compiler and JVM based run-time system)
Stars: ✭ 284 (+610%)
Mutual labels:  compiler, interpreter
Cfl
a Compileable statically typed Functional programming Language
Stars: ✭ 7 (-82.5%)
Mutual labels:  compiler, interpreter
Openj9
Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Stars: ✭ 2,802 (+6905%)
Mutual labels:  compiler, interpreter
Umka Lang
Umka: a statically typed embeddable scripting language
Stars: ✭ 308 (+670%)
Mutual labels:  compiler, interpreter
Mond
A scripting language for .NET Core
Stars: ✭ 237 (+492.5%)
Mutual labels:  compiler, interpreter
Passerine
A small extensible programming language designed for concise expression with little code.
Stars: ✭ 341 (+752.5%)
Mutual labels:  compiler, interpreter
Cub
The Cub Programming Language
Stars: ✭ 198 (+395%)
Mutual labels:  compiler, interpreter
Swift Lispkit
Interpreter framework for Lisp-based extension and scripting languages on macOS and iOS. LispKit is based on the R7RS standard for Scheme. Its compiler generates bytecode for a virtual machine. LispKit is fully implemented in Swift 5.
Stars: ✭ 228 (+470%)
Mutual labels:  compiler, interpreter
Renjin
JVM-based interpreter for the R language for the statistical analysis.
Stars: ✭ 466 (+1065%)
Mutual labels:  compiler, interpreter
Bic
A C interpreter and API explorer.
Stars: ✭ 719 (+1697.5%)
Mutual labels:  compiler, interpreter

Getting started

  1. Install ANTLR v4 (manual)
  2. Generate ANTLR files antlr4 Calculator.g4 -no-listener -visitor -o app
  3. Copy visitor implementation cp *.java app
  4. Compile javac app/*.java

Run

Type in console cd app && java Run

a = 1+2
b = a^2
c = a + b * (a - 1)
a + b + c

Result should be equal 33.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].