remykarem / bython

A basic and simple Python-like interpreter written in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A basic and simple Python-like interpreter written in C


Languages

Language:C 100.0%