Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
teaching
nswi098
Cecko
skeleton
Commits
b66a7231
Commit
b66a7231
authored
Oct 26, 2020
by
Jakub Yaghob
Browse files
korekce vystupu pro LA
parent
23e45135
Changes
4
Hide whitespace changes
Inline
Side-by-side
fmwk/ckcontext.cpp
View file @
b66a7231
...
...
@@ -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"
};
...
...
fmwk/ckcontext.hpp
View file @
b66a7231
...
...
@@ -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
;
...
...
test/testla-chr-n.cecko1.gold
View file @
b66a7231
...
...
@@ -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 "
\x
1234"
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
12
0
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
1
5
: integer literal 0
1
4
: integer literal 0
15: ETYPE char
15: identifier [h]
15: =
...
...
test/testla-str-n.cecko1.gold
View file @
b66a7231
...
...
@@ -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 "
\x
abce"
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
1
2
: string literal ""
1
1
: string literal ""
13: }
15: ETYPE char
15: *
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment