]> Cypherpunks repositories - gostls13.git/commit
exp/regexp/syntax: syntax data structures, parser
authorRuss Cox <rsc@golang.org>
Mon, 13 Jun 2011 13:20:23 +0000 (09:20 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 13 Jun 2011 13:20:23 +0000 (09:20 -0400)
commitb96c3477f8edd414b9be5670f3912f7cb15eab1e
tree0bdd0deaddbec42ddbdb7c2ae4b4a99216e1749a
parentb4bb970e1852e9f5340b846379ce4a434a1b9d26
exp/regexp/syntax: syntax data structures, parser

Parser is a work in progress but can populate most of the
interesting parts of the data structure, so a good checkpoint.
All the complicated Perl syntax is missing, as are various
important optimizations made during parsing to the
syntax tree.

The plan is that exp/regexp's API will mimic regexp,
and exp/regexp/syntax provides the parser directly
for programs that need it (and for implementing exp/regexp).

Once finished, exp/regexp will replace regexp.

R=r, sam.thorogood, kevlar, edsrzf
CC=golang-dev
https://golang.org/cl/4538123
src/pkg/Makefile
src/pkg/exp/regexp/syntax/Makefile [new file with mode: 0644]
src/pkg/exp/regexp/syntax/parse.go [new file with mode: 0644]
src/pkg/exp/regexp/syntax/parse_test.go [new file with mode: 0644]
src/pkg/exp/regexp/syntax/regexp.go [new file with mode: 0644]