diprism / perpl

The PERPL Compiler
MIT License
10 stars 5 forks source link

Sum-product #72

Closed davidweichiang closed 1 year ago

davidweichiang commented 1 year ago

This implements a very basic sum-product calculation, using fixed-point iteration. It seems too slow for some examples, but for several examples it returns the right answer or close enough:

$ ./compiler.exe -z examples/stairs.ppl
[21.0]

Closes #41