003 File Manager
Current Path:
/usr/src/contrib/byacc/test/yacc
usr
/
src
/
contrib
/
byacc
/
test
/
yacc
/
📁
..
📄
big_b.error
(1 KB)
📄
big_b.output
(0 B)
📄
big_l.error
(1 KB)
📄
big_l.output
(0 B)
📄
calc.error
(0 B)
📄
calc.output
(6.73 KB)
📄
calc.tab.c
(17.35 KB)
📄
calc.tab.h
(56 B)
📄
calc1.error
(89 B)
📄
calc1.output
(14.95 KB)
📄
calc1.tab.c
(21.95 KB)
📄
calc1.tab.h
(338 B)
📄
calc2.error
(0 B)
📄
calc2.output
(6.73 KB)
📄
calc2.tab.c
(17.85 KB)
📄
calc2.tab.h
(56 B)
📄
calc3.error
(0 B)
📄
calc3.output
(6.73 KB)
📄
calc3.tab.c
(18.15 KB)
📄
calc3.tab.h
(56 B)
📄
calc_code_all.error
(0 B)
📄
calc_code_all.output
(6.73 KB)
📄
calc_code_all.tab.c
(18.37 KB)
📄
calc_code_all.tab.h
(334 B)
📄
calc_code_default.error
(0 B)
📄
calc_code_default.output
(6.73 KB)
📄
calc_code_default.tab.c
(18.08 KB)
📄
calc_code_default.tab.h
(56 B)
📄
calc_code_imports.error
(0 B)
📄
calc_code_imports.output
(6.73 KB)
📄
calc_code_imports.tab.c
(17.9 KB)
📄
calc_code_imports.tab.h
(56 B)
📄
calc_code_provides.error
(0 B)
📄
calc_code_provides.output
(6.73 KB)
📄
calc_code_provides.tab.c
(18.14 KB)
📄
calc_code_provides.tab.h
(229 B)
📄
calc_code_requires.error
(0 B)
📄
calc_code_requires.output
(6.73 KB)
📄
calc_code_requires.tab.c
(18.14 KB)
📄
calc_code_requires.tab.h
(229 B)
📄
calc_code_top.error
(0 B)
📄
calc_code_top.output
(6.73 KB)
📄
calc_code_top.tab.c
(17.9 KB)
📄
calc_code_top.tab.h
(56 B)
📄
code_calc.code.c
(12.73 KB)
📄
code_calc.error
(0 B)
📄
code_calc.output
(6.73 KB)
📄
code_calc.tab.c
(5.12 KB)
📄
code_calc.tab.h
(94 B)
📄
code_error.code.c
(10.84 KB)
📄
code_error.error
(0 B)
📄
code_error.output
(262 B)
📄
code_error.tab.c
(1.27 KB)
📄
code_error.tab.h
(0 B)
📄
defines1.calc.c
(16.09 KB)
📄
defines1.calc.h
(56 B)
📄
defines1.error
(0 B)
📄
defines1.output
(0 B)
📄
defines2.calc.c
(16.09 KB)
📄
defines2.calc.h
(56 B)
📄
defines2.error
(0 B)
📄
defines2.output
(0 B)
📄
defines3.calc.c
(16.1 KB)
📄
defines3.calc.h
(56 B)
📄
defines3.error
(0 B)
📄
defines3.output
(0 B)
📄
empty.error
(0 B)
📄
empty.output
(237 B)
📄
empty.tab.c
(11.73 KB)
📄
empty.tab.h
(0 B)
📄
err_syntax1.error
(61 B)
📄
err_syntax1.output
(0 B)
📄
err_syntax1.tab.c
(442 B)
📄
err_syntax1.tab.h
(0 B)
📄
err_syntax10.error
(228 B)
📄
err_syntax10.output
(262 B)
📄
err_syntax10.tab.c
(11.76 KB)
📄
err_syntax10.tab.h
(0 B)
📄
err_syntax11.error
(82 B)
📄
err_syntax11.output
(262 B)
📄
err_syntax11.tab.c
(11.91 KB)
📄
err_syntax11.tab.h
(0 B)
📄
err_syntax12.error
(78 B)
📄
err_syntax12.output
(262 B)
📄
err_syntax12.tab.c
(12.33 KB)
📄
err_syntax12.tab.h
(17 B)
📄
err_syntax13.error
(73 B)
📄
err_syntax13.output
(0 B)
📄
err_syntax13.tab.c
(442 B)
📄
err_syntax13.tab.h
(0 B)
📄
err_syntax14.error
(123 B)
📄
err_syntax14.output
(0 B)
📄
err_syntax14.tab.c
(442 B)
📄
err_syntax14.tab.h
(0 B)
📄
err_syntax15.error
(70 B)
📄
err_syntax15.output
(0 B)
📄
err_syntax15.tab.c
(442 B)
📄
err_syntax15.tab.h
(0 B)
📄
err_syntax16.error
(84 B)
📄
err_syntax16.output
(0 B)
📄
err_syntax16.tab.c
(442 B)
📄
err_syntax16.tab.h
(0 B)
📄
err_syntax17.error
(76 B)
📄
err_syntax17.output
(0 B)
📄
err_syntax17.tab.c
(442 B)
📄
err_syntax17.tab.h
(0 B)
📄
err_syntax18.error
(89 B)
📄
err_syntax18.output
(433 B)
📄
err_syntax18.tab.c
(12.1 KB)
📄
err_syntax18.tab.h
(0 B)
📄
err_syntax19.error
(108 B)
📄
err_syntax19.output
(0 B)
📄
err_syntax19.tab.c
(442 B)
📄
err_syntax19.tab.h
(0 B)
📄
err_syntax2.error
(63 B)
📄
err_syntax2.output
(0 B)
📄
err_syntax2.tab.c
(442 B)
📄
err_syntax2.tab.h
(0 B)
📄
err_syntax20.error
(40 B)
📄
err_syntax20.output
(424 B)
📄
err_syntax20.tab.c
(11.96 KB)
📄
err_syntax20.tab.h
(18 B)
📄
err_syntax21.error
(55 B)
📄
err_syntax21.output
(0 B)
📄
err_syntax21.tab.c
(442 B)
📄
err_syntax21.tab.h
(0 B)
📄
err_syntax22.error
(63 B)
📄
err_syntax22.output
(0 B)
📄
err_syntax22.tab.c
(442 B)
📄
err_syntax22.tab.h
(0 B)
📄
err_syntax23.error
(55 B)
📄
err_syntax23.output
(0 B)
📄
err_syntax23.tab.c
(442 B)
📄
err_syntax23.tab.h
(0 B)
📄
err_syntax24.error
(157 B)
📄
err_syntax24.output
(0 B)
📄
err_syntax24.tab.c
(442 B)
📄
err_syntax24.tab.h
(0 B)
📄
err_syntax25.error
(81 B)
📄
err_syntax25.output
(0 B)
📄
err_syntax25.tab.c
(442 B)
📄
err_syntax25.tab.h
(0 B)
📄
err_syntax26.error
(63 B)
📄
err_syntax26.output
(0 B)
📄
err_syntax26.tab.c
(442 B)
📄
err_syntax26.tab.h
(0 B)
📄
err_syntax27.error
(52 B)
📄
err_syntax27.output
(0 B)
📄
err_syntax27.tab.c
(442 B)
📄
err_syntax27.tab.h
(0 B)
📄
err_syntax3.error
(108 B)
📄
err_syntax3.output
(0 B)
📄
err_syntax3.tab.c
(442 B)
📄
err_syntax3.tab.h
(0 B)
📄
err_syntax4.error
(57 B)
📄
err_syntax4.output
(0 B)
📄
err_syntax4.tab.c
(442 B)
📄
err_syntax4.tab.h
(0 B)
📄
err_syntax5.error
(82 B)
📄
err_syntax5.output
(0 B)
📄
err_syntax5.tab.c
(442 B)
📄
err_syntax5.tab.h
(0 B)
📄
err_syntax6.error
(85 B)
📄
err_syntax6.output
(0 B)
📄
err_syntax6.tab.c
(442 B)
📄
err_syntax6.tab.h
(0 B)
📄
err_syntax7.error
(95 B)
📄
err_syntax7.output
(0 B)
📄
err_syntax7.tab.c
(442 B)
📄
err_syntax7.tab.h
(0 B)
📄
err_syntax7a.error
(97 B)
📄
err_syntax7a.output
(0 B)
📄
err_syntax7a.tab.c
(442 B)
📄
err_syntax7a.tab.h
(0 B)
📄
err_syntax7b.error
(95 B)
📄
err_syntax7b.output
(0 B)
📄
err_syntax7b.tab.c
(442 B)
📄
err_syntax7b.tab.h
(0 B)
📄
err_syntax8.error
(72 B)
📄
err_syntax8.output
(0 B)
📄
err_syntax8.tab.c
(442 B)
📄
err_syntax8.tab.h
(0 B)
📄
err_syntax8a.error
(77 B)
📄
err_syntax8a.output
(0 B)
📄
err_syntax8a.tab.c
(442 B)
📄
err_syntax8a.tab.h
(0 B)
📄
err_syntax9.error
(94 B)
📄
err_syntax9.output
(0 B)
📄
err_syntax9.tab.c
(442 B)
📄
err_syntax9.tab.h
(0 B)
📄
error.error
(0 B)
📄
error.output
(262 B)
📄
error.tab.c
(11.72 KB)
📄
error.tab.h
(0 B)
📄
expr.oxout.error
(72 B)
📄
expr.oxout.output
(2.67 KB)
📄
expr.oxout.tab.c
(44.72 KB)
📄
expr.oxout.tab.h
(337 B)
📄
grammar.dot
(93.78 KB)
📄
grammar.error
(59 B)
📄
grammar.output
(43.3 KB)
📄
grammar.tab.c
(63.41 KB)
📄
grammar.tab.h
(771 B)
📄
help.error
(985 B)
📄
help.output
(0 B)
📄
no_b_opt.error
(985 B)
📄
no_b_opt.output
(0 B)
📄
no_b_opt1.error
(37 B)
📄
no_b_opt1.output
(0 B)
📄
no_code_c.error
(37 B)
📄
no_code_c.output
(0 B)
📄
no_defines.error
(37 B)
📄
no_defines.output
(0 B)
📄
no_graph.error
(39 B)
📄
no_graph.output
(0 B)
📄
no_include.error
(37 B)
📄
no_include.output
(0 B)
📄
no_opts.error
(37 B)
📄
no_opts.output
(0 B)
📄
no_output.error
(42 B)
📄
no_output.output
(0 B)
📄
no_output1.error
(42 B)
📄
no_output1.output
(0 B)
📄
no_output2.error
(985 B)
📄
no_output2.output
(0 B)
📄
no_p_opt.error
(985 B)
📄
no_p_opt.output
(0 B)
📄
no_p_opt1.error
(37 B)
📄
no_p_opt1.output
(0 B)
📄
no_verbose.error
(42 B)
📄
no_verbose.output
(0 B)
📄
nostdin.error
(965 B)
📄
nostdin.output
(0 B)
📄
ok_syntax1.error
(0 B)
📄
ok_syntax1.output
(6.73 KB)
📄
ok_syntax1.tab.c
(19.03 KB)
📄
ok_syntax1.tab.h
(514 B)
📄
pure_calc.error
(0 B)
📄
pure_calc.output
(6.73 KB)
📄
pure_calc.tab.c
(17.89 KB)
📄
pure_calc.tab.h
(56 B)
📄
pure_error.error
(0 B)
📄
pure_error.output
(262 B)
📄
pure_error.tab.c
(12.22 KB)
📄
pure_error.tab.h
(0 B)
📄
quote_calc-s.error
(33 B)
📄
quote_calc-s.output
(11.1 KB)
📄
quote_calc-s.tab.c
(18.3 KB)
📄
quote_calc-s.tab.h
(170 B)
📄
quote_calc.error
(33 B)
📄
quote_calc.output
(11.1 KB)
📄
quote_calc.tab.c
(18.39 KB)
📄
quote_calc.tab.h
(266 B)
📄
quote_calc2-s.error
(33 B)
📄
quote_calc2-s.output
(10.88 KB)
📄
quote_calc2-s.tab.c
(18.36 KB)
📄
quote_calc2-s.tab.h
(170 B)
📄
quote_calc2.error
(33 B)
📄
quote_calc2.output
(10.88 KB)
📄
quote_calc2.tab.c
(18.45 KB)
📄
quote_calc2.tab.h
(266 B)
📄
quote_calc3-s.error
(33 B)
📄
quote_calc3-s.output
(11.1 KB)
📄
quote_calc3-s.tab.c
(18.4 KB)
📄
quote_calc3-s.tab.h
(170 B)
📄
quote_calc3.error
(33 B)
📄
quote_calc3.output
(11.1 KB)
📄
quote_calc3.tab.c
(18.39 KB)
📄
quote_calc3.tab.h
(170 B)
📄
quote_calc4-s.error
(33 B)
📄
quote_calc4-s.output
(12.85 KB)
📄
quote_calc4-s.tab.c
(18.48 KB)
📄
quote_calc4-s.tab.h
(170 B)
📄
quote_calc4.error
(33 B)
📄
quote_calc4.output
(12.85 KB)
📄
quote_calc4.tab.c
(18.47 KB)
📄
quote_calc4.tab.h
(170 B)
📄
rename_debug.c
(9.51 KB)
📄
rename_debug.error
(0 B)
📄
rename_debug.h
(22 B)
📄
rename_debug.i
(1.26 KB)
📄
rename_debug.output
(262 B)
📄
stdin1.calc.c
(16.11 KB)
📄
stdin1.error
(0 B)
📄
stdin1.output
(0 B)
📄
stdin2.calc.c
(16.11 KB)
📄
stdin2.error
(0 B)
📄
stdin2.output
(0 B)
📄
varsyntax_calc1.error
(89 B)
📄
varsyntax_calc1.output
(14.95 KB)
📄
varsyntax_calc1.tab.c
(22.63 KB)
📄
varsyntax_calc1.tab.h
(432 B)
Editing: code_calc.tab.c
typedef int YYINT; const YYINT calc_lhs[] = { -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, }; const YYINT calc_len[] = { 2, 0, 3, 3, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 1, 1, 1, 2, }; const YYINT calc_defred[] = { 1, 0, 0, 17, 0, 0, 0, 0, 0, 0, 3, 0, 15, 14, 0, 2, 0, 0, 0, 0, 0, 0, 0, 18, 0, 6, 0, 0, 0, 0, 9, 10, 11, }; const YYINT calc_dgoto[] = { 1, 7, 8, 9, }; const YYINT calc_sindex[] = { 0, -40, -7, 0, -55, -38, -38, 1, -29, -247, 0, -38, 0, 0, 22, 0, -38, -38, -38, -38, -38, -38, -38, 0, -29, 0, 51, 60, -20, -20, 0, 0, 0, }; const YYINT calc_rindex[] = { 0, 0, 0, 0, 2, 0, 0, 0, 9, -9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, -6, 14, 5, 13, 0, 0, 0, }; const YYINT calc_gindex[] = { 0, 0, 65, 0, }; const YYINT calc_table[] = { 6, 16, 6, 10, 13, 5, 11, 5, 22, 17, 23, 15, 15, 20, 18, 7, 19, 22, 21, 4, 5, 0, 20, 8, 12, 0, 0, 21, 16, 16, 0, 0, 16, 16, 16, 13, 16, 0, 16, 15, 15, 0, 0, 7, 15, 15, 7, 15, 7, 15, 7, 8, 12, 0, 8, 12, 8, 0, 8, 22, 17, 0, 0, 25, 20, 18, 0, 19, 0, 21, 13, 14, 0, 0, 0, 0, 24, 0, 0, 0, 0, 26, 27, 28, 29, 30, 31, 32, 22, 17, 0, 0, 0, 20, 18, 16, 19, 22, 21, 0, 0, 0, 20, 18, 0, 19, 0, 21, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 8, 12, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 3, 12, }; const YYINT calc_check[] = { 40, 10, 40, 10, 10, 45, 61, 45, 37, 38, 257, 10, 10, 42, 43, 10, 45, 37, 47, 10, 10, -1, 42, 10, 10, -1, -1, 47, 37, 38, -1, -1, 41, 42, 43, 41, 45, -1, 47, 37, 38, -1, -1, 38, 42, 43, 41, 45, 43, 47, 45, 38, 38, -1, 41, 41, 43, -1, 45, 37, 38, -1, -1, 41, 42, 43, -1, 45, -1, 47, 5, 6, -1, -1, -1, -1, 11, -1, -1, -1, -1, 16, 17, 18, 19, 20, 21, 22, 37, 38, -1, -1, -1, 42, 43, 124, 45, 37, 47, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, 124, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, 124, -1, -1, -1, -1, -1, -1, -1, 124, 124, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 256, 257, 258, 257, 258, }; #ifndef YYDEBUG #define YYDEBUG 0 #endif const char *const calc_name[] = { "end-of-file",0,0,0,0,0,0,0,0,0,"'\\n'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,"'%'","'&'",0,"'('","')'","'*'","'+'",0,"'-'",0,"'/'",0,0,0,0,0,0,0, 0,0,0,0,0,0,"'='",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'|'",0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,"DIGIT","LETTER","UMINUS",0,0,0,0,0,"illegal-symbol", }; #if YYDEBUG const char *const calc_rule[] = { "$accept : list", "list :", "list : list stat '\\n'", "list : list error '\\n'", "stat : expr", "stat : LETTER '=' expr", "expr : '(' expr ')'", "expr : expr '+' expr", "expr : expr '-' expr", "expr : expr '*' expr", "expr : expr '/' expr", "expr : expr '%' expr", "expr : expr '&' expr", "expr : expr '|' expr", "expr : '-' expr", "expr : LETTER", "expr : number", "number : DIGIT", "number : number DIGIT", }; #endif
Upload File
Create Folder