Skip to content

ZQuestClassic/zscript-grammar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZScript

ZScript is the scripting language for ZQuest Classic. The ZScript compiler is implemented here. The parser uses flex/bison and the codegen (to ZASM, the bytecode that runs in the game engine) is C++. The language can be explored in the web playground.

This repo has two things:

  • grammar/ contains a PEG (Parsing expression grammar) for ZScript, along with scripts to validate the PEG grammar with the real compiler.
  • zig/ contains a barely-baked reimplementation of the ZScript compiler in Zig. Currently it's barely more than a lexer.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published