[parenscript-devel] Syntax error generated by CASE

Vladimir Sedach vsedach at gmail.com
Sat Dec 10 02:11:23 UTC 2011


Just pushed a patch. Thank you for the bug report!

Vladimir

On Thu, Dec 8, 2011 at 1:42 PM, Scott Bell <scott at skysheet.com> wrote:
> When a CASE expression is in the return position of a function and it
> contains an empty clause that is not the last clause, a syntax error is
> produced:
>
> (lambda () (case x (:foo) (:bar)))
>   =>
> function () {
>     switch (x) {
>     case 'foo':
>         return break;
>     case 'bar':
>         return null;
>     };
> };
>  =>
> SyntaxError: Unexpected token break
>
>     Scott
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel




More information about the parenscript-devel mailing list