Skip to content

mayer-doa-coder/Arcane

Repository files navigation

Arcane (Wizard64 Edition)

Arcane is a Flex-based lexer and Bison parser foundation aligned to the Final 64 keyword set defined in wizard_keyword.md.

Status

  • ✅ Lexer keywords/operators converted to Wizard64
  • ✅ Sample .wiz inputs converted
  • ✅ Parser grammar (parser/wizard.y) is buildable and runnable for syntax validation

Core Files

  • lexer/wizard.l — Wizard64 lexer rules
  • parser/wizard.y — Wizard64 parser grammar
  • input/sample.wiz — main sample using Wizard64 syntax
  • input/another-sample.wiz — minimal sample
  • wizard_keyword.md — source-of-truth keyword list

Build

make lexer
make parser

Run

make run

Or write token output to file:

make test

Run parser on sample:

make test-parser

Token Output Format

<TOKEN_TYPE, "lexeme", line:X>

Notes

  • Comments use ## (single-line) and #* ... *# (multi-line, nested).
  • Relational tokens (==, !=, >, <, >=, <=) are supported for conditions.

About

Arcane is a wizard-inspired programming language developed using Flex and Bison. The project demonstrates core compiler design principles, including lexical analysis, syntax analysis, tokenization, and grammar construction, through a structured and spell-based language design.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors