qscript.compiler

Modules

ast
module qscript.compiler.ast

Contains definitions for "nodes" making the AST

astcheck
module qscript.compiler.astcheck

Functions to check if a script is valid (or certain nodes) by its generated AST

astgen
module qscript.compiler.astgen

Contains functions to generate AST from tokens

asthtml
module qscript.compiler.asthtml

Used for debugging compiler Generates a HTML page that represents a readable representation of AST nodes Only available in qsCompiler configuration (dub -c=qsCompiler)

astreadable
module qscript.compiler.astreadable

Used for debugging the astgen. Contains functions to generate a readable string respresentation of AST nodes

codegen
module qscript.compiler.codegen

For generating byte code from AST

compiler
module qscript.compiler.compiler

All the compiler modules packaged into one, this one module should be used to compile scripts.

tokengen
module qscript.compiler.tokengen

For reading a script into tokens