parser.output

来自「Shorthand是一个强大的脚本语言」· OUTPUT 代码 · 共 2,223 行 · 第 1/5 页

OUTPUT
2,223
字号
    expression  ->  expression . '.' IDENT '(' arguments ')'   (rule 56)    expression  ->  '(' expression . ')'   (rule 57)    expression  ->  expression . '+' expression   (rule 58)    expression  ->  expression . '-' expression   (rule 59)    expression  ->  expression . '*' expression   (rule 60)    expression  ->  expression . '/' expression   (rule 61)    expression  ->  expression . '%' expression   (rule 62)    expression  ->  expression . '&' expression   (rule 64)    expression  ->  expression . '[' expression ']'   (rule 67)    expression  ->  expression . '{' expression '}'   (rule 68)    '&' 	shift, and go to state 65    '+' 	shift, and go to state 66    '-' 	shift, and go to state 67    '%' 	shift, and go to state 68    '*' 	shift, and go to state 69    '/' 	shift, and go to state 70    '.' 	shift, and go to state 75    '[' 	shift, and go to state 72    '{' 	shift, and go to state 73    ')' 	shift, and go to state 99state 62    statements  ->  statements subst .   (rule 9)    $default	reduce using rule 9 (statements)state 63    newlines  ->  newlines '\n' .   (rule 28)    $default	reduce using rule 28 (newlines)state 64    statement  ->  expression '=' . expression   (rule 16)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 100state 65    expression  ->  expression '&' . expression   (rule 64)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 101state 66    expression  ->  expression '+' . expression   (rule 58)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 102state 67    expression  ->  expression '-' . expression   (rule 59)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 103state 68    expression  ->  expression '%' . expression   (rule 62)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 104state 69    expression  ->  expression '*' . expression   (rule 60)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 105state 70    expression  ->  expression '/' . expression   (rule 61)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 106state 71    statement  ->  expression '.' . IDENT '(' arguments ')'   (rule 17)    expression  ->  expression '.' . IDENT   (rule 55)    expression  ->  expression '.' . IDENT '(' arguments ')'   (rule 56)    IDENT	shift, and go to state 107state 72    expression  ->  expression '[' . expression ']'   (rule 67)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 108state 73    expression  ->  expression '{' . expression '}'   (rule 68)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 109state 74    expression  ->  IDENT '(' . arguments ')'   (rule 53)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    $default	reduce using rule 41 (arguments)    arguments	go to state 110    arglist	go to state 77    expression	go to state 78state 75    expression  ->  expression '.' . IDENT   (rule 55)    expression  ->  expression '.' . IDENT '(' arguments ')'   (rule 56)    IDENT	shift, and go to state 111state 76    call  ->  IDENT '(' arguments . ')'   (rule 33)    expression  ->  IDENT '(' arguments . ')'   (rule 53)    ')' 	shift, and go to state 112state 77    arguments  ->  arglist .   (rule 42)    arglist  ->  arglist . ',' expression   (rule 48)    ',' 	shift, and go to state 113    $default	reduce using rule 42 (arguments)state 78    arglist  ->  expression .   (rule 47)    expression  ->  expression . '.' IDENT   (rule 55)    expression  ->  expression . '.' IDENT '(' arguments ')'   (rule 56)    expression  ->  expression . '+' expression   (rule 58)    expression  ->  expression . '-' expression   (rule 59)    expression  ->  expression . '*' expression   (rule 60)    expression  ->  expression . '/' expression   (rule 61)    expression  ->  expression . '%' expression   (rule 62)    expression  ->  expression . '&' expression   (rule 64)    expression  ->  expression . '[' expression ']'   (rule 67)    expression  ->  expression . '{' expression '}'   (rule 68)    '&' 	shift, and go to state 65    '+' 	shift, and go to state 66    '-' 	shift, and go to state 67    '%' 	shift, and go to state 68    '*' 	shift, and go to state 69    '/' 	shift, and go to state 70    '.' 	shift, and go to state 75    '[' 	shift, and go to state 72    '{' 	shift, and go to state 73    $default	reduce using rule 47 (arglist)state 79    condition  ->  condition . AND condition   (rule 76)    condition  ->  condition . OR condition   (rule 77)    condition  ->  NOT condition .   (rule 78)    $default	reduce using rule 78 (condition)state 80    expression  ->  expression . '.' IDENT   (rule 55)    expression  ->  expression . '.' IDENT '(' arguments ')'   (rule 56)    expression  ->  '(' expression . ')'   (rule 57)    expression  ->  expression . '+' expression   (rule 58)    expression  ->  expression . '-' expression   (rule 59)    expression  ->  expression . '*' expression   (rule 60)    expression  ->  expression . '/' expression   (rule 61)    expression  ->  expression . '%' expression   (rule 62)    expression  ->  expression . '&' expression   (rule 64)    expression  ->  expression . '[' expression ']'   (rule 67)    expression  ->  expression . '{' expression '}'   (rule 68)    condition  ->  expression . '<' expression   (rule 69)    condition  ->  expression . '>' expression   (rule 70)    condition  ->  expression . '=' expression   (rule 71)    condition  ->  expression . LE expression   (rule 72)    condition  ->  expression . GE expression   (rule 73)    condition  ->  expression . NE expression   (rule 74)    condition  ->  expression .   (rule 79)    NE  	shift, and go to state 82    LE  	shift, and go to state 83    GE  	shift, and go to state 84    '<' 	shift, and go to state 85    '>' 	shift, and go to state 86    '=' 	shift, and go to state 87    '&' 	shift, and go to state 65    '+' 	shift, and go to state 66    '-' 	shift, and go to state 67    '%' 	shift, and go to state 68    '*' 	shift, and go to state 69    '/' 	shift, and go to state 70    '.' 	shift, and go to state 75    '[' 	shift, and go to state 72    '{' 	shift, and go to state 73    ')' 	shift, and go to state 99    ')' 	[reduce using rule 79 (condition)]    $default	reduce using rule 79 (condition)state 81    condition  ->  '(' condition . ')'   (rule 75)    condition  ->  condition . AND condition   (rule 76)    condition  ->  condition . OR condition   (rule 77)    OR  	shift, and go to state 89    AND 	shift, and go to state 90    ')' 	shift, and go to state 114state 82    condition  ->  expression NE . expression   (rule 74)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 115state 83    condition  ->  expression LE . expression   (rule 72)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 116state 84    condition  ->  expression GE . expression   (rule 73)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 117state 85    condition  ->  expression '<' . expression   (rule 69)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 118state 86    condition  ->  expression '>' . expression   (rule 70)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    expression	go to state 119state 87    condition  ->  expression '=' . expression   (rule 71)    IDENT	shift, and go to state 37    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?