Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1 KB

README.md

File metadata and controls

43 lines (33 loc) · 1 KB

Bython

A basic and simple Python-like interpreter written in C.

Workflow

  1. Memory management (memory.h)
    • ByArena
    • Reference count
    • Garbage collection
  2. Parsing (tok.h)
  3. AST (ast.h)
    • ByAST_Node
  4. Bytecode (compile.h)
    • ByCodeObject
  5. Execution (execution.h)
    • Simple execution
    • Stack-based virtual machine
  • Create Bython objects (objects.h)
    • ByObject_Int
    • ByObject_List
  • Perform operations (objects.h)
    • Assignment
    • Arithmetic
  • Functions
    • Define
    • Call

What can the program do?

  • Assignment
  • Arithmetic
  • Arithmetic with assignment
  • Defining function
  • Calling a function

References