Skip to content

gasin/beta-reduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beta-reduction

inplement beta-reduction with C++

Description

Leftmost strategy and de-bruijn index are used.
To compute a beta normal form, lazy evaluation is not used.

Compile

$ gmake

Usage

The syntax is similar to OCaml.
Just show some input examples below.

$ (\f f y x) (\x \y x)
$ (\f \x f (f x)) (\x x)

Demo

result result

References

「型システム入門」 Benjamin C. Pierce

About

inplement with C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published