Commit b66a7231 authored by Jakub Yaghob's avatar Jakub Yaghob
Browse files

korekce vystupu pro LA

parent 23e45135
......@@ -25,6 +25,7 @@ namespace cecko {
err_def_n INTERNAL{ "INTERNAL ERROR" };
err_def_n EMPTYCHAR{ "Empty character" };
err_def_n MULTICHAR_LONG{ "Multi-character too long" };
err_def_n EOLINSTRCHR{ "End of line in string or character literal" };
err_def_n EOFINSTRCHR{ "End of file in string or character literal" };
err_def_n EOFINCMT{ "End of file in comment" };
......
......@@ -56,6 +56,7 @@ namespace cecko {
extern err_def_n INTERNAL;
extern err_def_n EMPTYCHAR;
extern err_def_n MULTICHAR_LONG;
extern err_def_n EOLINSTRCHR;
extern err_def_n EOFINSTRCHR;
extern err_def_n EOFINCMT;
......
......@@ -24,8 +24,9 @@ Error (line 8): Empty character
9: ETYPE char
9: identifier [c]
9: =
Error (line 9): Multi-character too long
Error (line 9): End of line in string or character literal
10: integer literal 1920102258
9: integer literal 1920102258
10: ETYPE char
10: identifier [d]
10: =
......@@ -35,21 +36,21 @@ Error (line 10): Malformed escape sequence "\q"
11: ETYPE char
11: identifier [e]
11: =
Error (line 11): Malformed escape sequence "1234"
Error (line 11): Malformed escape sequence "\x1234"
11: integer literal 52
11: ;
12: ETYPE char
12: identifier [f]
12: =
Error (line 12): Malformed escape sequence "\x"
12: integer literal 0
12: integer literal 120
12: ;
14: ETYPE char
14: identifier [g]
14: =
Error (line 14): Malformed escape sequence "\"
Error (line 14): End of line in string or character literal
15: integer literal 0
14: integer literal 0
15: ETYPE char
15: identifier [h]
15: =
......
......@@ -15,12 +15,12 @@
5: identifier [a]
5: =
Error (line 5): End of line in string or character literal
6: string literal "EOL in string"
5: string literal "EOL in string"
6: ETYPE char
6: *
6: identifier [b]
6: =
Error (line 6): Malformed escape sequence "abce"
Error (line 6): Malformed escape sequence "\xabce"
6: string literal "Too long hex \xcescape"
6: ;
7: ETYPE char
......@@ -42,7 +42,7 @@ Error (line 8): Malformed escape sequence "\u"
11: =
Error (line 11): Malformed escape sequence "\"
Error (line 11): End of line in string or character literal
12: string literal ""
11: string literal ""
13: }
15: ETYPE char
15: *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment