mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
misc doc
R=r DELTA=50 (28 added, 0 deleted, 22 changed) OCL=25763 CL=25770
This commit is contained in:
parent
5b814d02f2
commit
8a7eb77880
3 changed files with 50 additions and 22 deletions
|
|
@ -31,16 +31,18 @@ import (
|
|||
var debug = false;
|
||||
|
||||
// Error codes returned by failures to parse an expression.
|
||||
var ErrInternal = os.NewError("internal error");
|
||||
var ErrUnmatchedLpar = os.NewError("unmatched '('");
|
||||
var ErrUnmatchedRpar = os.NewError("unmatched ')'");
|
||||
var ErrUnmatchedLbkt = os.NewError("unmatched '['");
|
||||
var ErrUnmatchedRbkt = os.NewError("unmatched ']'");
|
||||
var ErrBadRange = os.NewError("bad range in character class");
|
||||
var ErrExtraneousBackslash = os.NewError("extraneous backslash");
|
||||
var ErrBadClosure = os.NewError("repeated closure (**, ++, etc.)");
|
||||
var ErrBareClosure = os.NewError("closure applies to nothing");
|
||||
var ErrBadBackslash = os.NewError("illegal backslash escape");
|
||||
var (
|
||||
ErrInternal = os.NewError("internal error");
|
||||
ErrUnmatchedLpar = os.NewError("unmatched '('");
|
||||
ErrUnmatchedRpar = os.NewError("unmatched ')'");
|
||||
ErrUnmatchedLbkt = os.NewError("unmatched '['");
|
||||
ErrUnmatchedRbkt = os.NewError("unmatched ']'");
|
||||
ErrBadRange = os.NewError("bad range in character class");
|
||||
ErrExtraneousBackslash = os.NewError("extraneous backslash");
|
||||
ErrBadClosure = os.NewError("repeated closure (**, ++, etc.)");
|
||||
ErrBareClosure = os.NewError("closure applies to nothing");
|
||||
ErrBadBackslash = os.NewError("illegal backslash escape");
|
||||
)
|
||||
|
||||
// An instruction executed by the NFA
|
||||
type instr interface {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue