Email or username:

Password:

Forgot your password?
Top-level
Kartik Agaram

@neauoire @wryl Bug report for the ANSI C implementation:

$ cat x.modal
<> (?x dup) (?x ?x)
<> (?x ?y swap) (?y ?x)
<> ( ?x pop) ()

.. (1 2 3) (4 5 6) swap pop dup

$ gcc -g modal.c -o modal && ./modal x.modal
01 .. (4 5 6) (1 2 3) pop dup

02 .. (4 5 6) dup

00 .. (4 5 6)

<> (?x dup) (?x ?x)
<> (?x ?y swap) (?y ?x)
<> (?x pop) ()

5 comments
(wryl)

@akkartik @neauoire Is this with the latest commit? We were just working through parsing this morning.

Devine Lu Linvega

@akkartik @wryl OOoh, haha my fix for the spacing issue broke it.. Thanks for the report Kartik, I'll fix this right away/

Devine Lu Linvega

@akkartik @wryl fixed :) we recently changed how whitespace is handled and it broke the pop rule.

Kartik Agaram

@neauoire @wryl For my part I have now found the repo ^_^ Was copying from the webpage earlier.

Devine Lu Linvega

@akkartik @wryl Let us know what you find while exploring Modal, we're still figuring stuff out, what's possible and whatnot.

I haven't documented the explode register(?*), but it's going to be really useful to do arithmetic.

<> (explode ?*) (str (?*))

.. (explode hello)
00 (str (h (e (l (l (o))))))

Go Up