Home | History | Annotate | Download | only in parse

Lines Matching defs:String

14 // item represents a token or text string returned from the scanner.
17 pos Pos // The starting position, in bytes, of this item in the input string.
18 val string // The value of this item.
22 func (i item) String() string {
53 itemRawString // raw quoted string (includes quotes)
57 itemString // quoted string (includes quotes)
74 var key = map[string]itemType{
109 name string // the name of the input; used only for error reports
110 input string // the string being scanned
111 leftDelim string // start of action
112 rightDelim string // end of action
171 func (l *lexer) accept(valid string) bool {
180 func (l *lexer) acceptRun(valid string) {
188 func (l *lexer) errorf(format string, args ...interface{}) stateFn {
208 // lex creates a new scanner for the input string.
209 func lex(name, input, left, right string) *lexer {
273 // rightTrimLength returns the length of the spaces at the end of the string.
274 func rightTrimLength(s string) Pos {
292 // leftTrimLength returns the length of the spaces at the beginning of the string.
293 func leftTrimLength(s string) Pos {
358 // Either number, quoted string, or identifier.
591 // lexQuote scans a quoted string.
602 return l.errorf("unterminated quoted string")
611 // lexRawQuote scans a raw quoted string.
621 string")