File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -728,7 +728,7 @@ auto lex_line(
728
728
// G
729
729
// G floating-point-literal:
730
730
// G digit { ' | digit }* . digit { ' | digit }*
731
- // GTODO TODO: full grammar
731
+ // GTODO full grammar
732
732
// G
733
733
else if (is_digit (line[i])) {
734
734
auto j = 1 ;
Original file line number Diff line number Diff line change @@ -1949,7 +1949,7 @@ class parser
1949
1949
// it doesn't destabilize any regression tests
1950
1950
)
1951
1951
{
1952
- error (" expression-statement does not end with semicolon " );
1952
+ error (" expected ; at end of statement " );
1953
1953
return {};
1954
1954
}
1955
1955
if (curr ().type () == lexeme::Semicolon) {
@@ -2267,6 +2267,14 @@ class parser
2267
2267
return {};
2268
2268
}
2269
2269
2270
+ if (!is_expression) {
2271
+ errors.emplace_back (
2272
+ curr ().position (),
2273
+ " (temporary alpha limitation) cppfront is still learning 'inspect' - only inspect expressions are currently supported"
2274
+ );
2275
+ return {};
2276
+ }
2277
+
2270
2278
auto n = std::make_unique<inspect_expression_node>();
2271
2279
n->identifier = &curr ();
2272
2280
next ();
You can’t perform that action at this time.
0 commit comments