Skip to content

Commit 6826faf

Browse files
eernstgcommit-bot@chromium.org
authored andcommitted
Update spec_parser.
Update spec_parser to enable configurableUri in deferred imports, make cascade syntax compositional, include `extension` declarations, add `late` as a built-in identifier, and reorder the lexical rules for single words such that they are grouped into reserved words, built-in identifiers, and "other words known by the grammar". Cf. language issue #615, #627, #628, #638. Change-Id: If60b2ba2ca0e7d4bbc9b4e886857f657fb14c809 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121991 Reviewed-by: Lasse R.H. Nielsen <[email protected]> Commit-Queue: Erik Ernst <[email protected]>
1 parent 5a45d0b commit 6826faf

File tree

3 files changed

+216
-147
lines changed

3 files changed

+216
-147
lines changed

tests/language_2/language_2_spec_parser.status

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55
[ $compiler == spec_parser ]
66
built_in_identifier_prefix_test: Skip # A built-in identifier can _not_ be a prefix.
77
closure_type_test: Pass # Marked as RuntimeError for all in language_2.status.
8-
conditional_import_string_test: Fail # Uses conditional import.
9-
conditional_import_test: Fail # Uses conditional import.
108
const_native_factory_test: Skip # Uses `native`.
119
deep_nesting_expression_test: Skip # JVM stack overflow.
1210
deep_nesting_statement_test: Skip # JVM stack overflow.
1311
double_invalid_test: Skip # Contains illegaly formatted double.
14-
extension_methods: Skip # Not yet supported.
1512
getter_declaration_negative_test: Fail # Negative, uses getter with parameter.
1613
inst_field_initializer1_negative_test: Skip # Negative, not syntax.
1714
instance_call_wrong_argument_count_negative_test: Skip # Negative, not syntax.
@@ -62,5 +59,6 @@ string_unicode4_negative_test: Skip # Negative, not syntax.
6259
switch1_negative_test: Fail # Negative, `default` clause not last.
6360
test_negative_test: Fail # Negative, uses non-terminated string literal.
6461
unary_plus_negative_test: Fail # Negative, uses non-existing unary plus.
62+
variance: Skip # Not yet supported.
6563
vm/debug_break_enabled_vm_test/01: Fail # Uses debug break.
6664
vm/debug_break_enabled_vm_test/none: Fail # Uses debug break.

tools/spec_parser/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
*Listener.java
44
*.tokens
55
*.class
6+
*.interp
67
*.dot

0 commit comments

Comments
 (0)