Skip to content

ThatOneGin/parfast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  --->      @@@@@   @@@@  @@@@@  @@@@@@  @@@@   @@@@  @@@@@@ 
       -->  @@  @@ @@  @@ @@  @@ @@     @@  @@ @@       @@   
    -->     @@@@@  @@@@@@ @@@@@  @@@@   @@@@@@  @@@@    @@   
  -->       @@     @@  @@ @@  @@ @@     @@  @@     @@   @@   
      -->   @@     @@  @@ @@  @@ @@     @@  @@  @@@@    @@   

A stack oriented language that targets x86_64 assembly.

Supported assemblers

  • Nasm (default)

  • Fasm

Quickstart

for more detailed overview and demonstrations of the syntax, check quickstart

compile file:

$ lua parfast <input.parfast> -com
  [1/2] nasm -f elf64 input.parfast
  [2/2] ld -o input input.o

Or alternatively

$ ./parfast <input.parfast> -com
Commands:
  [1/2] nasm -f elf64 input.parfast
  [2/2] ld -o input input.o

Compiling the compiler

Required tools:

  • lua

  • luac

In linux, just run ./build.lua and it will procude a file named parfast which is the compiler. But unfortunately it won't work well on Windows.

Todos

  • type-checking

  • better error handling

  • multi assembler support

  • check stack inconsistency at stack tracker

  • self hosting (probably never XD)

About

A strange language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published