https://github.com/allantargino/lelang
A Programming Language developed by me called "Le". It was developed using ANTLR.
https://github.com/allantargino/lelang
antlr compiler compiler-construction
Last synced: 9 months ago
JSON representation
A Programming Language developed by me called "Le". It was developed using ANTLR.
- Host: GitHub
- URL: https://github.com/allantargino/lelang
- Owner: allantargino
- Created: 2017-07-27T05:45:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-13T14:24:55.000Z (almost 9 years ago)
- Last Synced: 2025-03-30T08:16:08.244Z (about 1 year ago)
- Topics: antlr, compiler, compiler-construction
- Language: Java
- Homepage:
- Size: 604 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Le Programming Language
### Requirements
* You must have JDK installed on your machine.
### Usage
* Linux: Run *compile.sh* file to compile the language.
* Windows: Run *compile.ps1* file to compile the language.
You can modify these scripts to compile any programs in Le.
To use a Windows IDE, visit: [LeLang.IDE](https://github.com/allantargino/lelang.ide)
### Example
```c
program myProgram
{
# variable declaration
int a, b, c;
bool cond;
cte int d:=89, e:=77;
decimal myDec;
str name;
# program body
a:=3+5+90*2;
cond:=false;
myDec:=3.14f;
if(c>2 && a>2)
Write("if1");
if(cond)
Write("if2");
else
Write("else2");
endif
else
Write("else1");
endif
while(c>10)
Write("o");
c := c - 1;
next
Write("Your Name ");
Read(name);
Write("The End");
}
```