Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soulyma/compiler_for_go-langauge
Using Java and JAVACC I designed a mini Interpreter that handle errors and execute statements for GO codes
https://github.com/soulyma/compiler_for_go-langauge
compiler go interpreter java javacc oop oops-in-java
Last synced: about 1 month ago
JSON representation
Using Java and JAVACC I designed a mini Interpreter that handle errors and execute statements for GO codes
- Host: GitHub
- URL: https://github.com/soulyma/compiler_for_go-langauge
- Owner: Soulyma
- Created: 2022-09-03T17:59:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T19:31:11.000Z (over 2 years ago)
- Last Synced: 2024-04-22T01:41:30.172Z (9 months ago)
- Topics: compiler, go, interpreter, java, javacc, oop, oops-in-java
- Homepage:
- Size: 79.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compiler_for_GO_langauge
Using Java and JAVACC I designed a mini Interpreter that handle errors and execute statements for GO codes
( With alot of help of OOP logic )
My Mini GO language will include the following statements
1- Input statement
2- Output statement (can print variable value or concatenation string with variable value ).
3- Assignment statement
4- If statement (with single condition or multiple conditions (“ && or || ”).
5- For statement
6- Switch statement
7- While statement
Example:
x :=0
for x <= 10 {
x ++
}
8- Repeat until loop
Example:
x :=0
for {
fmt.println(x)
x++
if x==5 { break }
}