Skip to content

pieterdepiet/compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

144 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler

Experimental project to learn assembly and other low-level stuff.

Features:

  • Integers with math
  • Strings (very limited)
  • Type safety
  • Functions
    • Return values
    • Named parameters
    • Overloading
  • If, else if, else and comparisons
  • Some object orientation
  • Intermediate executable representation, universal file format for half-compiled code.
  • Intermediate library representation, like intermediate executable representation, but can also contain data types and function definitions
  • Arrays, only local definition, can access and modify local array and pointers like argv

In progress

  • Nested function calls

TODO:

  • Add import
  • Implement classes
    • Implement public/private
    • Implement static class members
    • Implement structure pointers
    • Implement local structures
  • Add strings
    • Finish strings
  • Add arrays
  • More math
  • More number types
  • Think of a name for the language and an file extension

About

Compiler project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages