https://github.com/apozzi/academic-project-compiler-language
Lexical and Semantical compiler and IDE thats generate ildasm .NET assembly code and a executable.
https://github.com/apozzi/academic-project-compiler-language
compiler
Last synced: 2 months ago
JSON representation
Lexical and Semantical compiler and IDE thats generate ildasm .NET assembly code and a executable.
- Host: GitHub
- URL: https://github.com/apozzi/academic-project-compiler-language
- Owner: Apozzi
- License: cc-by-4.0
- Created: 2020-08-12T17:12:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-07T23:47:26.000Z (over 1 year ago)
- Last Synced: 2025-03-22T18:44:59.816Z (7 months ago)
- Topics: compiler
- Language: Java
- Homepage:
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# academic-project-compiler-language
Lexical and Semantical compiler and IDE thats generate ildasm .NET assembly code and a executable.THIS IS ONLY A ACADEMIC PROJECT.

## Example of Executable code
```
def
var
palp, qtd, maiorQue, menorQue, resp : int
cont : bool
execute
palp := 0
qtd := 0
maiorQue := 0
menorQue := 1000
cont := true
resp := 357
(cont) whileTrue:
qtd := qtd + 1
println("Digite um número maior que ",maiorQue," e menor que ",menorQue,".")
input(palp)
(palp = resp) ifTrue:
cont := false
ifFalse:
(palp > maiorQue && palp < resp) ifTrue:
maiorQue := palp
ifFalse:
(palp > resp && palp < menorQue) ifTrue:
menorQue := palp
end
end
end
end
println("Você acertou o número em apenas ",qtd," tentativas")
```I dont have any documentation about the language.
Used http://gals.sourceforge.net for creation of Lexical and Sematic analisation rules and creation of the parse tree.