Skip to content

Instantly share code, notes, and snippets.

View artpej's full-sized avatar

Sylvain Desgrais artpej

  • Clermont-Ferrand
View GitHub Profile
@artpej
artpej / parser.golo
Created July 4, 2015 07:36
Golo parser combinator adventure...
module parser
struct Context = {current, rest}
function any = {
return |reader| {
if reader is null or reader: isEmpty() {
return null

Keybase proof

I hereby claim:

  • I am Artpej on github.
  • I am artpej (https://keybase.io/artpej) on keybase.
  • I have a public key whose fingerprint is 8B0B D77B 51D3 70F1 E042 2D34 ABEA 19F8 AC37 B184

To claim this, I am signing this object:

module typetestdeco

function  zip = |a,b, zipper| {
  require(a: length() == b: length(), "Arrays must have the same size")
  for ( var i = 0, i < a: length(), i = i + 1) {
        zipper(a :get(i), b :get(i))
  }
}