これは y.output ファイルの一部です
状態 65
15式:式。"&&" 表現
16 | 表現 。「<」式
17 | 表現 。「+」表現
18 | 表現 。"-" 表現
19 | 表現 。"*" 表現
20 | 表現 。"[" 表現 "]"
21 | 表現 。「。」"長さ"
22 | 表現 。「。」識別子 "(" 式 "," 式 ")"
25 | 「!」表現 。
"[" shift, and go to state 67
"<" 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 73
"[" [reduce using rule 25 (Expression)]
"<" [reduce using rule 25 (Expression)]
"+" [reduce using rule 25 (Expression)]
"-" [reduce using rule 25 (Expression)]
"*" [reduce using rule 25 (Expression)]
"." [reduce using rule 25 (Expression)]
$default reduce using rule 25 (Expression)
これは、演算子の優先順位が設定される方法です
%left "&&"
%left '<'
%left '-' '+'
%left '*'
%right '!'
%left '.'
%left '(' ')'
%left '[' ']'