tyrian.compiler

class tyrian.compiler.Compiler[source]

Handles compilation of AST‘s

compile_parse_tree(filename: str, parse_tree) → Code[source]

Takes a filename and a parse_tree and returns a BytecodeAssembler Code object

Parameters:
  • filename – filename of file to compile
  • parse_tree – parse_tree to compile
Return type:

Code

write_code_to_file(codeobject: code, filehandler=None, filename: str=None)[source]

Write a code object to the specified filehandler

Read the Docs v: latest
Versions
latest
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.