This project provides a comprehensive implementation of the Ambient Calculus programming language. It covers the essential aspects of running the language, grammatical categories, code descriptions, and concluding remarks. Notably, the project leverages ANTLR4 with Go and Dot to facilitate syntax tree generation.
- Clone the Repository:
git clone [https://github.com/Sebas03446/AmbientCalculusLanguage.git](https://github.com/Sebas03446/AmbientCalculusLanguage.git)
- Execute ANTLR4
curl -O [https://www.antlr.org/download/antlr-4.9.2-complete.jar](https://www.antlr.org/download/antlr-4.9.2-complete.jar)
export CLASSPATH=".:antlr-4.9.2-complete.jar:$CLASSPATH"
alias antlr4='java -jar antlr-4.9.2-complete.jar'
alias grun='java org.antlr.v4.gui.TestRig'
- Update the parser
antlr4 -Dlanguage=Go AmbientCalculus.g4 -visitor -o parser
- Run the Compilator
go run main.go ejemplo1.ambient
This will compile and execute your code, generating the AST representation and its visualization as an image.