Sha256: 69cc6e170545452c72eb18afb4f753fb7fc0ac28bafcd852fc5895d499ff6dcd

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

import Somewhere.Something as X

ptype Int{int} = /^([0-9]+)$/\1/
ptype Bool{int} = True{1} | False{0}
type Maybe[a] = Just(a) | Nothing

foreign + as +(Int, Int):Int
infixl + 7

foreign - as '-(Int) : Int

init PIC.$init(0, 1)

f(x, y) = let t = (p, p) where p = (x, y)
              i = 100
          in (t, i)

in @pin False from $pin(0)
@acc 0 = @@acc + - - 1
out $world(@pin, @acc)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sfrp-1.2.1 spec/sfrp/input/parse_test.sfrp
sfrp-1.2.0 spec/sfrp/input/parse_test.sfrp
sfrp-1.1.0 spec/sfrp/input/parse_test.sfrp