Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Issue 2688903004: Creating an ANTLR grammar for Dart, potentially the syntax spec.

Created:
3 years, 10 months ago by eernst
Modified:
3 years, 3 months ago
CC:
reviews_dartlang.org, Bob Nystrom, Leaf, ahe
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Creating an ANTLR grammar for Dart, potentially the syntax spec.

Patch Set 1 #

Patch Set 2 : Grammar now nearly complete and accepted by antlr3 #

Patch Set 3 : Many adjustments made based on parsing actual Dart code. Will change a lot still. #

Patch Set 4 : Now parsing >80% of tests/language/*.dart #

Patch Set 5 : Now 100 failures in tests/language, except MULTI_LINE_STRING etc. #

Patch Set 6 : Now parses all of tests/language except entries in language_parser.status #

Patch Set 7 : Now handles single line strings with interpolation, and multi-line comments #

Patch Set 8 : Multi-line strings now support string interpolation #

Patch Set 9 : Adjusted formatting to stay within 80 char lines #

Patch Set 10 : Added copyright notice #

Patch Set 11 : Now parsing tests/language files containing generic functions #

Patch Set 12 : Noted that one of the grammar fixes is also reported as an SDK issue. #

Patch Set 13 : Now allows const and external factory constructors #

Patch Set 14 : Updated for current master and extended to handle generalized void syntax. #

Patch Set 15 : Extended to handle new `Function` type syntax #

Patch Set 16 : Added support for declaring generic functions. #

Patch Set 17 : Added support for generic function invocations #

Total comments: 3

Patch Set 18 : Enabled parsing many files from one JVM process #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2513 lines, -0 lines) Patch
A docs/language/Dart.g View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1729 lines, -0 lines 0 comments Download
A tests/language/language_parser.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +302 lines, -0 lines 0 comments Download
A tests/language_2/language_2_parser.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +49 lines, -0 lines 0 comments Download
A tests/language_strong/language_strong_parser.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +311 lines, -0 lines 0 comments Download
A tools/spec_parser/.gitignore View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A tools/spec_parser/Makefile View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
A tools/spec_parser/SpecParser.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +32 lines, -0 lines 0 comments Download
A tools/spec_parser/SpecParserRunner.java View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -0 lines 0 comments Download
A tools/spec_parser/spec_parse.dart View 1 2 3 4 5 6 7 8 9 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
eernst
I've created an ANTLR grammar for Dart (Dart.g below). It covers the language except very ...
3 years, 10 months ago (2017-02-17 13:26:43 UTC) #2
eernst
PTAL. The spec grammar Dart.g has been completed to such a degree that it parses ...
3 years, 3 months ago (2017-08-25 15:43:53 UTC) #3
floitsch
DBC. https://codereview.chromium.org/2688903004/diff/320001/docs/language/Dart.g File docs/language/Dart.g (right): https://codereview.chromium.org/2688903004/diff/320001/docs/language/Dart.g#newcode180 docs/language/Dart.g:180: : COVARIANT? finalConstVarOrType identifier Why is Covariant allowed ...
3 years, 3 months ago (2017-08-28 09:18:49 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/2688903004/diff/320001/docs/language/Dart.g File docs/language/Dart.g (right): https://codereview.chromium.org/2688903004/diff/320001/docs/language/Dart.g#newcode180 docs/language/Dart.g:180: : COVARIANT? finalConstVarOrType identifier I believe we handle that ...
3 years, 3 months ago (2017-08-28 10:51:34 UTC) #6
eernst
Review response. https://codereview.chromium.org/2688903004/diff/320001/docs/language/Dart.g File docs/language/Dart.g (right): https://codereview.chromium.org/2688903004/diff/320001/docs/language/Dart.g#newcode180 docs/language/Dart.g:180: : COVARIANT? finalConstVarOrType identifier On 2017/08/28 10:51:32, ...
3 years, 3 months ago (2017-08-28 11:35:16 UTC) #7
eernst
CC to ahe@.
3 years, 3 months ago (2017-08-30 10:57:56 UTC) #8
Lasse Reichstein Nielsen
3 years, 3 months ago (2017-09-20 07:50:59 UTC) #10
lgtm

Powered by Google App Engine
This is Rietveld 408576698