Commit abda9e6f authored by Robert Griesemer's avatar Robert Griesemer

Light-weight scanner for general use.

Emphasis on minimal interface and fast scanning.
Recognizes all Go literals by default. Easily
configurable to recognize different whitespace
characters and tokens.

Provides detailed position information for each
token.

R=rsc, r
CC=golang-dev
https://golang.org/cl/181160
parent cbd3b2e8
...@@ -99,6 +99,7 @@ DIRS=\ ...@@ -99,6 +99,7 @@ DIRS=\
regexp\ regexp\
rpc\ rpc\
runtime\ runtime\
scanner\
sort\ sort\
strconv\ strconv\
strings\ strings\
......
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
include ../../Make.$(GOARCH)
TARG=scanner
GOFILES=\
scanner.go\
include ../../Make.pkg
This diff is collapsed.
This diff is collapsed.
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