Commit 02d41ec7 authored by Robert Griesemer's avatar Robert Griesemer

rename exp/parser package to oldParser

to allow simultaneous import with the
current go/parser

R=rsc
https://golang.org/cl/174053
parent 130ac740
......@@ -4,7 +4,7 @@
// This file contains the exported entry points for invoking the parser.
package parser
package oldParser
import (
"bytes";
......
......@@ -2,12 +2,17 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// A parser for Go source files. Input may be provided in a variety of
// forms (see the various Parse* functions); the output is an abstract
// syntax tree (AST) representing the Go source. The parser is invoked
// through one of the Parse* functions.
// A parser for "old" Go source files using the old semicolon syntax.
// Input may be provided in a variety of forms (see the various Parse*
// functions); the output is an abstract syntax tree (AST) representing
// the Go source. The oldParser is invoked through one of the Parse*
// functions.
//
package parser
// NOTE: This package is deprecated and will be removed once all Go code
// has been converted to using the new syntax and after a reasonable
// grace period.
//
package oldParser
import (
"container/vector";
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package parser
package oldParser
import (
"os";
......@@ -82,7 +82,7 @@ func TestParse4(t *testing.T) {
if err != nil {
t.Fatalf("ParsePackage(%s): %v", path, err)
}
if pkg.Name != "parser" {
if pkg.Name != "oldParser" {
t.Errorf("incorrect package name: %s", pkg.Name)
}
for filename, _ := range pkg.Files {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment