Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(142)

Issue 4612041: code review 4612041: exp/regexp/syntax: more escapes, character classes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by rsc
Modified:
13 years, 9 months ago
Reviewers:
CC:
Sam, r, fvb, rh, golang-dev
Visibility:
Public.

Description

exp/regexp/syntax: more escapes, character classes Still TODO: parsing optimizations make_perl_groups.pl is copied with minimal modifications (just to generate Go syntax instead of C++) from RE2. Google Inc is "The RE2 Author" of that file and is one of the Go Authors, so copyright changed to the Go Authors instead.

Patch Set 1 #

Patch Set 2 : diff -r 5e5d55182675 https://go.googlecode.com/hg #

Patch Set 3 : diff -r 5e5d55182675 https://go.googlecode.com/hg #

Patch Set 4 : diff -r 5e5d55182675 https://go.googlecode.com/hg #

Patch Set 5 : diff -r 5e5d55182675 https://go.googlecode.com/hg #

Patch Set 6 : diff -r 5e5d55182675 https://go.googlecode.com/hg #

Total comments: 1

Patch Set 7 : diff -r 53460e066c2f https://go.googlecode.com/hg #

Total comments: 8

Patch Set 8 : diff -r 8572c1b0cdcc https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1006 lines, -104 lines) Patch
M src/pkg/exp/regexp/syntax/Makefile View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/exp/regexp/syntax/make_perl_groups.pl View 1 1 chunk +103 lines, -0 lines 0 comments Download
M src/pkg/exp/regexp/syntax/parse.go View 1 2 3 4 5 6 7 13 chunks +713 lines, -51 lines 0 comments Download
M src/pkg/exp/regexp/syntax/parse_test.go View 1 2 3 4 5 6 3 chunks +59 lines, -53 lines 0 comments Download
A src/pkg/exp/regexp/syntax/perl_groups.go View 1 1 chunk +130 lines, -0 lines 0 comments Download

Messages

Total messages: 9
rsc
Hello Sam, r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 9 months ago (2011-06-13 15:12:11 UTC) #1
rsc
Added Unicode; it was just a few lines. Now the only TODO is the parsing ...
13 years, 9 months ago (2011-06-13 15:53:07 UTC) #2
fvb
http://codereview.appspot.com/4612041/diff/1003/src/pkg/exp/regexp/syntax/parse.go File src/pkg/exp/regexp/syntax/parse.go (right): http://codereview.appspot.com/4612041/diff/1003/src/pkg/exp/regexp/syntax/parse.go#newcode756 src/pkg/exp/regexp/syntax/parse.go:756: // character or use \008. Don't you mean either ...
13 years, 9 months ago (2011-06-13 19:09:47 UTC) #3
rsc
> Don't you mean either \x08 or \010 here? Fixed, thanks. RE2 has the same ...
13 years, 9 months ago (2011-06-13 19:30:47 UTC) #4
r
LGTM what a load of nonsense. i do think this could be significantly cleaner with ...
13 years, 9 months ago (2011-06-14 03:56:42 UTC) #5
rh
http://codereview.appspot.com/4612041/diff/16001/src/pkg/exp/regexp/syntax/make_perl_groups.pl File src/pkg/exp/regexp/syntax/make_perl_groups.pl (right): http://codereview.appspot.com/4612041/diff/16001/src/pkg/exp/regexp/syntax/make_perl_groups.pl#newcode2 src/pkg/exp/regexp/syntax/make_perl_groups.pl:2: # Copyright 2008 The Go Authors. All rights reserved. ...
13 years, 9 months ago (2011-06-14 14:00:51 UTC) #6
rsc
> http://codereview.appspot.com/4612041/diff/16001/src/pkg/exp/regexp/syntax/make_perl_groups.pl#newcode2 > src/pkg/exp/regexp/syntax/make_perl_groups.pl:2: # Copyright 2008 The Go > Authors. All rights reserved. > ...
13 years, 9 months ago (2011-06-14 14:31:36 UTC) #7
rsc
> i do think this could be significantly cleaner with some helper methods > like ...
13 years, 9 months ago (2011-06-14 18:29:51 UTC) #8
rsc
13 years, 9 months ago (2011-06-14 18:30:12 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=ecb31be11487 ***

exp/regexp/syntax: more escapes, character classes

Still TODO: parsing optimizations

make_perl_groups.pl is copied with minimal modifications
(just to generate Go syntax instead of C++) from RE2.
Google Inc is "The RE2 Author" of that file and is one of
the Go Authors, so copyright changed to the Go Authors instead.

R=sam.thorogood, r, fvbommel, robert.hencke
CC=golang-dev
http://codereview.appspot.com/4612041
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b