Comments (3)
for example,
v("X"). //define variable X
times().
v("X").plus().v("Y") // X * X + Y
.times().begin(). // X* X + Y(
.n(12.3)
.plus().
.v("X").
end(); // X* X + Y(12.3+X)
;
try also
n(12).v("X") // 12 * X
.plus("Y") // 12*X+Y
.n(36) // 12*X + 36*Y
from fling.
The second code example would probably over-complicate the grammar---I'll pass it for now.
from fling.
Done. Language is called Arithmetic
.
from fling.
Related Issues (20)
- Rename Collections to As HOT 1
- Create Interface with template for generating grammars. HOT 1
- rewrite RunMeBefore
- Output for C++
- Output for C#
- Output for Scala HOT 1
- LR Grammar Generator
- Global renaming: OneOrMore->many; ZeroOrMore->any
- optional HOT 5
- https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html HOT 2
- Rename test packages HOT 1
- Use decorator design pattern HOT 1
- Accepting a broader a range of grammars and generating an AST with closely resembling structure HOT 3
- Rename CompilationScript.java HOT 1
- Create package fling.intenral HOT 1
- Create package-info files HOT 1
- Write the LL(1) grammar with itself HOT 3
- Traverse function HOT 3
- Rename package to il.ac.technion.cs.fling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fling.