Skip to content

几个需要支持的点 #14

Description

@leefj

1 在函数内部使用函数;
2 三目运算符
3 取余 % 不支持
4 if(a==b) fn(); 这种写法不支持;需要写成
if(a==b)
{
fn();
}
这样才行

5 末尾加分号也不行
if(a==b)
{
fn();
};

Activity

  1. leefj commented on Oct 25, 2017

    @leefj
    Author

    如果能支持这些就完美了

  2. dayu1979 commented on Apr 6, 2018

    @dayu1979
    Contributor

    %我忘了是不是支持。
    至于其他的几个,其实你可以尝试自己加一下,:)
    ascript是我做的第一个解释器,语法树结构不是特别完善,从现在来看如果采取一些更优秀的语法树结构,或许能做得更好。:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions