Skip to content

alexander-koch/postfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostFix

License: GPL v3

This is an interpreter for the PostFix programming language (WIP)

Language

PostFix is a stack-based programming language. It is inspired by Adobe Systems' PostScript as well as by Forth, Racket and NewLisp.

celsius-to-fahrenheit: (celsius :Int -> :Int) {
    celsius 9 * 5 i/ 32 +
} fun

"hello world!" println
24 celsius-to-fahrenheit println

Further information and language tutorials

Installation

To build the executable run

$ make

Make sure GNU Readline is installed on your system.

If you want to build the example library to test dynamic linking

$ make lib

This will build the example.so in the root directory of the project. To load the library type the following in the interpreter:

>>> "example.so" load-library

Contributing

Feel free to file issues and send pull requests. Contributions are highly welcome!

License

Copyright (c) Alexander Koch 2018

Licensed under GNU General Public License Version 3.

About

Interpreter for the PostFix programming language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published