Skip to content

Orphoros/ArcLangJava

Repository files navigation

Arc Compiler

By Orphoros and SarenDev


Project Structure

Docs

Src

  • Compiler package: Holds the TypeChecker and the CodeGenerator
  • Exceptions package: Holds Arc Lang's custom CompilerException
  • Jasmin package: Holds the DataType enum (used to check the expression types) and the MathInstr enum. These enums hold jasmin specific instructions
  • typing package: Holds the SymbolTable and the models of the various symbols in the symbols package

Tests

The CompilerTest java class holds all of our black box unit tests. These tests contain bad weather and good weather unit tests and tests for the example Arc files found in the docs folder.

A TestReport file can be found in the test folder that shows the result of our tests.

Parser grammar

Arc Lang's Antlr grammer file can be located in ArcLang.g4 file.

VS Code syntax highlighting plugin

The util folder holds the files for a custom VS Code extension that aims to give syntax highlighting for ArcLang.

Examples

The Language.md in the docs folder shows structural examples of constructing various ArcLang statements. The docs folder holds more concrete examples in the .arc files. Code comments are used there to explain how different actions were used.

About

A toy programming language for the JVM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published