Skip to content

P4SW/griddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bb2cb66 · May 23, 2022
May 22, 2022
May 23, 2022
May 19, 2022
May 5, 2022
May 23, 2022
May 11, 2022
May 19, 2022
May 5, 2022
May 22, 2022
May 22, 2022
Mar 25, 2022
May 5, 2022

Repository files navigation

Griddy

A programming language for board games.

Requirements

  • JDK 17 (Java Development Kit)
  • JRE (Java Runtime Environment)
  • GCC (GNU C compiler)

Usage

# Build Griddy compiler
sh build.sh

# Compile to binary
java -cp output com.company.Main --file examples/noughts_and_crosses.griddy --compile

# Run binary
./a.out

Files

Primary files:

  • Parsing (JJTree): src/com/company/griddy.jjt
  • AST node interface: src/com/company/parser/Node.java
  • Base AST node: src/com/company/parser/SimpleNode.java
  • Code generation:
    • Visitor: src/com/company/target/CVisitor.java
  • Program entry: src/com/company/Main.java

About

A programming language for board games.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published