Commits

Cat's Eye Technologies committed b2f3306

Aha. No newlines allowed in GraNoLa/M programs, it seems.

  • Participants
  • Parent commits f11cd21

Comments (0)

Files changed (2)

File doc/GraNoLa-M.markdown

     | a=^1hello(b=^uwaming(end() hello(world())))
     = {a,'1hello',[{b,uwaming,[{'end',nil,[]},{hello,nil,[{world,nil,[]}]}]}]}
 
-Doesn't parse.  Why not?  Must find out someday.
-
-    | a=^sajalom(b=^#d(c=^bimodang(^a))
-    |   d(e=^#sakura(f=^uwaming(g=^ubewic()))))
-    = ???
+    | a=^sajalom(b=^#d(c=^bimodang(^a))d(e=^#sakura(f=^uwaming(g=^ubewic()))))
+    = {a,sajalom,[{b,'#d',[{c,bimodang,[a]}]},{d,nil,[{e,'#sakura',[{f,uwaming,[{g,ubewic,[]}]}]}]}]}
 
     | a=^sajalom(b=^bejadoz(c=^soduv(^a d())))
     = {a,sajalom,[{b,bejadoz,[{c,soduv,[a,{d,nil,[]}]}]}]}
     | a=^0hello(b=^@hello(c=^taug(d=^uwaming(^a))))
     = embed=stack(hello())() embed=hello(hello())() embed=hello(he
 
+    | a=^sajalom(b=^#d(c=^bimodang(^a))d(e=^#sakura(f=^uwaming(g=^ubewic()))))
+    = ^sakura ^sakura ^sakura ^sakura ^sakura ^sakura ^sakura ^sak
+
     -> Tests for functionality "Interpret GraNoLa/M Program"
 
 This one doesn't loop infinitely.  Note, there is a space after `world())`.

File eg/example6.granolam

-a=^sajalom(b=^#d(c=^bimodang(^a))
-  d(e=^#sakura(f=^uwaming(g=^ubewic()))))
-
+a=^sajalom(b=^#d(c=^bimodang(^a))d(e=^#sakura(f=^uwaming(g=^ubewic()))))