Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pog-NET/Pog.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pog.NET

A stack-based and register-based no dependency compiler toolchain written in rust!



drawing

Installation

Install Pog.NET by running the build.sh script and then run the executables in the bin folder.

Running programs

You can run a program using pdn <program> and you can turn it into an executable using pdnd <program> <output>

Hello world:

:println
    sout !
    cout #10
    ret
:main
    push " Hello, world! "
    jump :println
  • Println
    • Pops the top of the stack and outptus it
    • Outputs ASCII 10 aka newline
    • Returns
  • main
    • Pushes the string "Hello, world!" to the top of the stack
    • Jumps to the println function

For more information check out operations.md

About

A stack-based and register-based compiler toolchain written in rust!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published