Index: polemy/_common.d ================================================================== --- polemy/_common.d +++ polemy/_common.d @@ -1,6 +1,6 @@ -/** +/** * Authors: k.inaba * License: NYSL 0.9982 http://www.kmonos.net/nysl/ * * "Always-opend" modules inside Polemy. */ Index: polemy/parse.d ================================================================== --- polemy/parse.d +++ polemy/parse.d @@ -1,6 +1,6 @@ -/** +/** * Authors: k.inaba * License: NYSL 0.9982 http://www.kmonos.net/nysl/ * * Parser for Polemy programming language */ @@ -189,11 +189,11 @@ cond, new FunLiteral(thenPos, [], th), new FunLiteral(elsePos, [], el) ); } - if( tryEat("fun") || tryEat("λ") ) + if( tryEat("fun") || tryEat("ƒÉ") ) { eat("(", "after fun"); string[] params; while( !tryEat(")") ) { @@ -257,12 +257,12 @@ assert_eq(parseString(`123`), intl(123)); assert_eq(parseString(`"foo"`), strl("foo")); assert_eq(parseString(`fun(){1}`), fun([],intl(1))); assert_eq(parseString(`fun(x){1}`), fun(["x"],intl(1))); - assert_eq(parseString(`λ(){1}`), fun([],intl(1))); - assert_eq(parseString(`λ(x){1}`), fun(["x"],intl(1))); + assert_eq(parseString(`ƒÉ(){1}`), fun([],intl(1))); + assert_eq(parseString(`ƒÉ(x){1}`), fun(["x"],intl(1))); assert_eq(parseString(`1;2`), let("_","@val",intl(1),intl(2))); assert_eq(parseString(`1;2;`), let("_","@val",intl(1),intl(2))); assert_eq(parseString(`let x=1;2`), let("x","@val",intl(1),intl(2))); assert_eq(parseString(`var x=1;2;`), let("x","@val",intl(1),intl(2))); assert_eq(parseString(`def x=1`), let("x","@val",intl(1),var("x")));