Skip to content

dssrts/COSMIC_SCRIPT

Repository files navigation

COSMIC SCRIPT

Automata and Formal Languages/Compiler Design

  • Cosmic Script Compiler
  • Group 4 BSCS 3-3
  • 2nd Sem 2023

To run:

  1. Clone/download the repo
  2. Type cd execute in the terminal
  3. Type python main.py in the terminal

Features:

  • Lexer: read characters and tokenize
  • Parser: read tokens and build ast
  • Syntax analyzer: analyze the syntax based on the tokens
  • Semantic analyzer: analyzes the context of the tokens and checks if used properly.
  • Transpiler: transpiles abstract syntax tree nodes to python.

Other:

  • Built own library in built-in.py used to add methods (used as functions).

About

Compiler made with Python from scratch (lexer, syntax, semantic).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages