Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 }
}