Skip to content

remykarem/bython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages