]> granicus.if.org Git - re2c/commitdiff
- Update results
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 15 Apr 2006 19:32:33 +0000 (19:32 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 15 Apr 2006 19:32:33 +0000 (19:32 +0000)
lessons/001_upn_calculator/calc_006.s.c
lessons/001_upn_calculator/calc_007.b.c

index 8caece70390bcd4cd7f0d35751ef22a09eaf20d6..720c4cefbad43cfda9842c20854c106cbab5bd31 100755 (executable)
@@ -92,7 +92,7 @@ int scan(char *s, int l)
                        yych = *YYCURSOR;
                        goto yy21;
 yy3:
-#line 108 "calc_006.s.re"
+#line 114 "calc_006.s.re"
                        { continue; }
 #line 98 "<stdout>"
 yy4:
@@ -100,7 +100,7 @@ yy4:
                        if((yych = *YYCURSOR) <= '/') goto yy5;
                        if(yych <= '9') goto yy17;
 yy5:
-#line 110 "calc_006.s.re"
+#line 116 "calc_006.s.re"
                        { res = push_num(t, p, 10); continue; }
 #line 106 "<stdout>"
 yy6:
@@ -108,22 +108,22 @@ yy6:
                        goto yy16;
 yy7:
                        ++YYCURSOR;
-#line 111 "calc_006.s.re"
+#line 117 "calc_006.s.re"
                        { res = stack_add();            continue; }
 #line 114 "<stdout>"
 yy9:
                        ++YYCURSOR;
-#line 112 "calc_006.s.re"
+#line 118 "calc_006.s.re"
                        { res = stack_sub();            continue; }
 #line 119 "<stdout>"
 yy11:
                        ++YYCURSOR;
-#line 113 "calc_006.s.re"
+#line 119 "calc_006.s.re"
                        { res = depth == 1 ? 0 : 2;     continue; }
 #line 124 "<stdout>"
 yy13:
                        ++YYCURSOR;
-#line 114 "calc_006.s.re"
+#line 120 "calc_006.s.re"
                        { res = 1;                                      continue; }
 #line 129 "<stdout>"
 yy15:
@@ -139,7 +139,7 @@ yy17:
                        if(yych <= '/') goto yy19;
                        if(yych <= '9') goto yy17;
 yy19:
-#line 109 "calc_006.s.re"
+#line 115 "calc_006.s.re"
                        { res = push_num(t, p, 8);      continue; }
 #line 145 "<stdout>"
 yy20:
@@ -150,7 +150,7 @@ yy21:
                        if(yych == ' ') goto yy20;
                        goto yy3;
                }
-#line 115 "calc_006.s.re"
+#line 121 "calc_006.s.re"
 
        }
        return res;
index 5bed9313369fc1d8ce095af53df2792e108a0c32..c3bd70f7e725bcb4eb976d4f7c3c9d85dddaef19 100755 (executable)
@@ -127,7 +127,7 @@ int scan(char *s, int l)
                                yych = *YYCURSOR;
                                goto yy21;
 yy3:
-#line 108 "calc_007.b.re"
+#line 79 "calc_007.b.re"
                                { continue; }
 #line 133 "<stdout>"
 yy4:
@@ -135,7 +135,7 @@ yy4:
                                if((yych = *YYCURSOR) <= '/') goto yy5;
                                if(yych <= '9') goto yy17;
 yy5:
-#line 110 "calc_007.b.re"
+#line 81 "calc_007.b.re"
                                { res = push_num(t, p, 10); continue; }
 #line 141 "<stdout>"
 yy6:
@@ -143,22 +143,22 @@ yy6:
                                goto yy16;
 yy7:
                                ++YYCURSOR;
-#line 111 "calc_007.b.re"
+#line 82 "calc_007.b.re"
                                { res = stack_add();            continue; }
 #line 149 "<stdout>"
 yy9:
                                ++YYCURSOR;
-#line 112 "calc_007.b.re"
+#line 83 "calc_007.b.re"
                                { res = stack_sub();            continue; }
 #line 154 "<stdout>"
 yy11:
                                ++YYCURSOR;
-#line 113 "calc_007.b.re"
+#line 84 "calc_007.b.re"
                                { res = depth == 1 ? 0 : 2;     continue; }
 #line 159 "<stdout>"
 yy13:
                                ++YYCURSOR;
-#line 114 "calc_007.b.re"
+#line 85 "calc_007.b.re"
                                { res = 1;                                      continue; }
 #line 164 "<stdout>"
 yy15:
@@ -175,7 +175,7 @@ yy17:
                                if(yych <= '/') goto yy19;
                                if(yych <= '9') goto yy17;
 yy19:
-#line 109 "calc_007.b.re"
+#line 80 "calc_007.b.re"
                                { res = push_num(t, p, 8);      continue; }
 #line 181 "<stdout>"
 yy20:
@@ -188,7 +188,7 @@ yy21:
                                goto yy3;
                        }
                }
-#line 115 "calc_007.b.re"
+#line 86 "calc_007.b.re"
 
        }
        return res;