Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

ducklang_AIreviewed

Documentation (Spanish)

Prerequisites

  • Python 3
  • Java 11

Installation and execution

  1. Create a Python virtual environment
python3 -m venv venv
  1. Activate virtual environment
source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. (If needed) Make changes to the lexer and parser declarations in the "ducklang.g4" file, then run this command to generate the necessary Python module files
java -jar antlr-4.13.2-complete.jar -Dlanguage=Python3 ducklang.g4
  1. (If needed) Make changes to the input file where the ducklang code is ("input_ducklang_code.txt")
  2. (If needed) Make changes to the semantic analyzer ("ducklangSemanticAnalyzer.py"), and/or to the file that executes the compiler ("main.py")
  3. Execute the parser
python main.py
  1. Deactivate virtual environment
deactivate venv

Created by Luis Ángel González Romo, using Python with ANTLR4 with BSD License

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages