parser.output

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

OUTPUT
2,223
字号
    STRING	shift, and go to state 6    K_NULL	shift, and go to state 17    NOT 	shift, and go to state 40    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 41    expression	go to state 42    condition	go to state 43state 8    statement  ->  PRINT . expression   (rule 18)    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 44state 9    statement  ->  PRINTLN . expression   (rule 19)    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 45state 10    loop  ->  GRID . '(' IDENT ')' statements END GRID   (rule 34)    loop  ->  GRID . '(' IDENT ',' expression ')' statements END GRID   (rule 35)    loop  ->  GRID . '(' IDENT ',' expression ',' expression ')' statements END GRID   (rule 36)    '(' 	shift, and go to state 46state 11    loop  ->  WHILE . condition statements END WHILE   (rule 37)    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    NOT 	shift, and go to state 40    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 41    expression	go to state 42    condition	go to state 47state 12    statement  ->  BREAK .   (rule 14)    $default	reduce using rule 14 (statement)state 13    statement  ->  CONTINUE .   (rule 15)    $default	reduce using rule 15 (statement)state 14    loop  ->  FOR . IDENT '=' expression TO expression statements END FOR   (rule 38)    IDENT	shift, and go to state 48state 15    statement  ->  K_RETURN . expression   (rule 24)    statement  ->  K_RETURN .   (rule 25)    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    IDENT	[reduce using rule 25 (statement)]    NUMBER	[reduce using rule 25 (statement)]    _FLOAT	[reduce using rule 25 (statement)]    STRING	[reduce using rule 25 (statement)]    K_NULL	[reduce using rule 25 (statement)]    '-' 	[reduce using rule 25 (statement)]    K_NEW	[reduce using rule 25 (statement)]    '(' 	[reduce using rule 25 (statement)]    $default	reduce using rule 25 (statement)    expression	go to state 49state 16    statement  ->  FUNCTION . IDENT '(' params ')' statements END FUNCTION   (rule 23)    IDENT	shift, and go to state 50state 17    expression  ->  K_NULL .   (rule 51)    $default	reduce using rule 51 (expression)state 18    statement  ->  INCLUDE . expression   (rule 20)    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 51state 19    statement  ->  JUMP . expression   (rule 21)    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 52state 20    statement  ->  LOCAL . locals   (rule 26)    IDENT	shift, and go to state 53    local	go to state 54    locals	go to state 55state 21    loop  ->  FOREACH . expression AS expression statements END FOR   (rule 39)    loop  ->  FOREACH . expression AS expression EQL expression statements END FOR   (rule 40)    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 56state 22    expression  ->  '-' . expression   (rule 63)    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 57state 23    expression  ->  K_NEW . OBJECT_IDENT   (rule 65)    expression  ->  K_NEW . call   (rule 66)    IDENT	shift, and go to state 58    OBJECT_IDENT	shift, and go to state 59    call	go to state 60state 24    expression  ->  '(' . expression ')'   (rule 57)    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 61state 25    subst  ->  ';' .   (rule 7)    $default	reduce using rule 7 (subst)state 26    newlines  ->  '\n' .   (rule 27)    $default	reduce using rule 27 (newlines)state 27    input  ->  content .   (rule 1)    $default	reduce using rule 1 (input)state 28    statements  ->  subst .   (rule 8)    $default	reduce using rule 8 (statements)state 29    content  ->  statements .   (rule 3)    statements  ->  statements . subst   (rule 9)    BARE_HTML	shift, and go to state 1    HTML_AND_PRINT	shift, and go to state 2    IDENT	shift, and go to state 3    NUMBER	shift, and go to state 4    _FLOAT	shift, and go to state 5    STRING	shift, and go to state 6    IF  	shift, and go to state 7    PRINT	shift, and go to state 8    PRINTLN	shift, and go to state 9    GRID	shift, and go to state 10    WHILE	shift, and go to state 11    BREAK	shift, and go to state 12    CONTINUE	shift, and go to state 13    FOR 	shift, and go to state 14    K_RETURN	shift, and go to state 15    FUNCTION	shift, and go to state 16    K_NULL	shift, and go to state 17    INCLUDE	shift, and go to state 18    JUMP	shift, and go to state 19    LOCAL	shift, and go to state 20    FOREACH	shift, and go to state 21    '-' 	shift, and go to state 22    K_NEW	shift, and go to state 23    '(' 	shift, and go to state 24    ';' 	shift, and go to state 25    '\n'	shift, and go to state 26    $default	reduce using rule 3 (content)    subst	go to state 62    super_statement	go to state 30    statement	go to state 31    newlines	go to state 32    call	go to state 33    loop	go to state 34    expression	go to state 35    if_block	go to state 36state 30    subst  ->  super_statement .   (rule 6)    $default	reduce using rule 6 (subst)state 31    subst  ->  statement .   (rule 5)    $default	reduce using rule 5 (subst)state 32    subst  ->  newlines .   (rule 4)    newlines  ->  newlines . '\n'   (rule 28)    '\n'	shift, and go to state 63    '\n'	[reduce using rule 4 (subst)]    $default	reduce using rule 4 (subst)state 33    statement  ->  call .   (rule 22)    $default	reduce using rule 22 (statement)state 34    statement  ->  loop .   (rule 13)    $default	reduce using rule 13 (statement)state 35    statement  ->  expression . '=' expression   (rule 16)    statement  ->  expression . '.' IDENT '(' arguments ')'   (rule 17)    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 64    '&' 	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 71    '[' 	shift, and go to state 72    '{' 	shift, and go to state 73state 36    statement  ->  if_block .   (rule 12)    $default	reduce using rule 12 (statement)state 37    expression  ->  IDENT . '(' arguments ')'   (rule 53)    expression  ->  IDENT .   (rule 54)    '(' 	shift, and go to state 74    '(' 	[reduce using rule 54 (expression)]    $default	reduce using rule 54 (expression)state 38    super_statement  ->  HTML_AND_PRINT expression .   (rule 11)    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

⌨️ 快捷键说明

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