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

Issue 646003002: Introduced hash valued location markers in the spec (Closed)

Created:
6 years, 2 months ago by eernst
Modified:
6 years, 2 months ago
CC:
reviews_dartlang.org, ricow1
Visibility:
Public.

Description

Introduced hash valued location markers in the spec Introduced support for adding SHA1 hash valued location markers at several levels in the language specification, added long explanatory comment at the end, added a script 'addlatexhash.dart' to normalize spacing, remove comments, etc., in the spec, such that the hash values are more robust than they would be with a direct usage of the spec. The script passes the "dvi2tty test", that is, when the location markers are empty, the resulting *.dvi files created from dartLangSpec.tex and from the version processed by the script give rise to the same text via dvi2tty, i.e., the script does not destroy the spec. R=gbracha@google.com, ricow@google.com Committed: https://code.google.com/p/dart/source/detail?r=41191

Patch Set 1 #

Total comments: 56

Patch Set 2 : Created spec location marker test, adjusted filter #

Total comments: 80

Patch Set 3 : Adjusted after review #

Total comments: 28

Patch Set 4 : Revised after 2nd review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1412 lines, -152 lines) Patch
M docs/language/dart.sty View 1 1 chunk +36 lines, -0 lines 0 comments Download
M docs/language/dartLangSpec.tex View 1 2 3 301 chunks +1050 lines, -152 lines 0 comments Download
A tests/standalone/io/addlatexhash_test.dart View 1 2 3 1 chunk +122 lines, -0 lines 0 comments Download
A tools/addlatexhash.dart View 1 2 3 1 chunk +204 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
eernst
This is the version of the spec that contains all the new stuff associated with ...
6 years, 2 months ago (2014-10-10 19:15:07 UTC) #2
gbracha
lgtm with comment https://codereview.chromium.org/646003002/diff/1/docs/language/dart.sty File docs/language/dart.sty (right): https://codereview.chromium.org/646003002/diff/1/docs/language/dart.sty#newcode133 docs/language/dart.sty:133: \definecolor{LMdim}{gray}{0.95} Weren't we going to make ...
6 years, 2 months ago (2014-10-10 21:51:59 UTC) #3
ricow1
dbc, mostly style comments, but I really think you should use the repo version of ...
6 years, 2 months ago (2014-10-13 06:07:04 UTC) #5
eernst
Hello Gilad and Rico, @Rico, I have inserted a couple of questions in the comments ...
6 years, 2 months ago (2014-10-13 08:03:30 UTC) #6
eernst
For the spec, only dart.sty was changed, to use white color. For addlatexhash.dart, many changes ...
6 years, 2 months ago (2014-10-13 14:09:31 UTC) #7
ricow1
mostly style https://codereview.chromium.org/646003002/diff/130001/tests/standalone/io/addlatexhash_test.dart File tests/standalone/io/addlatexhash_test.dart (right): https://codereview.chromium.org/646003002/diff/130001/tests/standalone/io/addlatexhash_test.dart#newcode12 tests/standalone/io/addlatexhash_test.dart:12: final dartRootPath = "/" + pathList.join("/") + ...
6 years, 2 months ago (2014-10-14 06:09:12 UTC) #8
eernst
Almost all issues resolved as described in comments, but not these two (details inline): (1) ...
6 years, 2 months ago (2014-10-14 15:06:23 UTC) #9
eernst
https://codereview.chromium.org/646003002/diff/130001/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/646003002/diff/130001/tools/addlatexhash.dart#newcode11 tools/addlatexhash.dart:11: // dart ../../tools/addlatexhash.dart < dartLangSpec.tex >tmp.tex On 2014/10/14 06:09:12, ...
6 years, 2 months ago (2014-10-14 15:53:26 UTC) #10
ricow1
lgtm +lrn if you want input on the regexps and text manipulation (I did not ...
6 years, 2 months ago (2014-10-15 08:29:05 UTC) #12
Lasse Reichstein Nielsen
Comments on string manipulation only. https://codereview.chromium.org/646003002/diff/1/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/646003002/diff/1/tools/addlatexhash.dart#newcode9 tools/addlatexhash.dart:9: // dart ../../tools/addlatexhash.dart < ...
6 years, 2 months ago (2014-10-15 09:13:18 UTC) #13
Lasse Reichstein Nielsen
https://codereview.chromium.org/646003002/diff/1/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/646003002/diff/1/tools/addlatexhash.dart#newcode306 tools/addlatexhash.dart:306: cut_regexp(line, re, {start_offset:0, end_offset:0, glue:""}) { Is this comment ...
6 years, 2 months ago (2014-10-15 09:13:58 UTC) #14
ricow1
https://codereview.chromium.org/646003002/diff/1/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/646003002/diff/1/tools/addlatexhash.dart#newcode9 tools/addlatexhash.dart:9: // dart ../../tools/addlatexhash.dart < dartLangSpec.tex >tmp.tex On 2014/10/15 09:13:17, ...
6 years, 2 months ago (2014-10-15 09:23:06 UTC) #15
eernst
https://codereview.chromium.org/646003002/diff/220001/tests/standalone/io/addlatexhash_test.dart File tests/standalone/io/addlatexhash_test.dart (right): https://codereview.chromium.org/646003002/diff/220001/tests/standalone/io/addlatexhash_test.dart#newcode18 tests/standalone/io/addlatexhash_test.dart:18: var output = result.stdout; On 2014/10/15 08:29:05, ricow1 wrote: ...
6 years, 2 months ago (2014-10-15 11:03:04 UTC) #16
eernst
Thanks for the clarification, no changes were made in relation to this review.
6 years, 2 months ago (2014-10-15 11:06:24 UTC) #17
eernst
Comments to Lasse. This was the previous patch set, but a couple of issues are ...
6 years, 2 months ago (2014-10-15 12:01:11 UTC) #18
eernst
Comments to Lasse. https://codereview.chromium.org/646003002/diff/220001/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/646003002/diff/220001/tools/addlatexhash.dart#newcode33 tools/addlatexhash.dart:33: final commentAllRe = new RegExp("^%"); On ...
6 years, 2 months ago (2014-10-15 13:19:28 UTC) #19
Lasse Reichstein Nielsen
https://codereview.chromium.org/646003002/diff/220001/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/646003002/diff/220001/tools/addlatexhash.dart#newcode34 tools/addlatexhash.dart:34: final commentRe = new RegExp("[^\\\\]%[^\\n]*"); Also just noticed that ...
6 years, 2 months ago (2014-10-15 14:09:58 UTC) #20
eernst
A couple of comments to Lasse. https://codereview.chromium.org/646003002/diff/220001/tools/addlatexhash.dart File tools/addlatexhash.dart (right): https://codereview.chromium.org/646003002/diff/220001/tools/addlatexhash.dart#newcode34 tools/addlatexhash.dart:34: final commentRe = ...
6 years, 2 months ago (2014-10-15 14:26:42 UTC) #21
eernst
Committed patchset #4 (id:240001) manually as 41191 (presubmit successful).
6 years, 2 months ago (2014-10-20 14:02:32 UTC) #22
eernst
6 years, 2 months ago (2014-10-20 14:14:03 UTC) #23
Message was sent while issue was closed.
TBR

Lasse, you raised an issue at the end (about the "VM RegExps are just wrong"
bug).  You said 'Maybe wait until the new RegExp implementation lands', and I
asked for some kind of trigger such that we would be notified at a relevant
time.  If this is important then we should probably take it elsewhere, so I
dcommitted the code and just left this "TBR" reminder.

Powered by Google App Engine
This is Rietveld 408576698