Lines Matching defs:lexer

59 type lexer struct {  struct
60 input string
61 start int
62 pos int
63 line int
64 state stateFn
65 items chan item
69 prevWidths [3]int
70 nprev int // how many of prevWidths are in use
73 atEOF bool
80 stack []stateFn
89 func (lx *lexer) nextItem() item {
111 func (lx *lexer) push(state stateFn) {
115 func (lx *lexer) pop() stateFn {
124 func (lx *lexer) current() string {
128 func (lx *lexer) emit(typ itemType) {
133 func (lx *lexer) emitTrim(typ itemType) {
138 func (lx *lexer) next() (r rune) {
162 func (lx *lexer) ignore() {
167 func (lx *lexer) backup() {
186 func (lx *lexer) accept(valid rune) bool {
195 func (lx *lexer) peek() rune {
202 func (lx *lexer) skip(pred func(rune) bool) {
217 func (lx *lexer) errorf(format string, values ...interface{}) stateFn {
227 func lexTop(lx *lexer) stateFn {
256 func lexTopEnd(lx *lexer) stateFn {
281 func lexTableStart(lx *lexer) stateFn {
293 func lexTableEnd(lx *lexer) stateFn {
298 func lexArrayTableEnd(lx *lexer) stateFn {
307 func lexTableNameStart(lx *lexer) stateFn {
327 func lexBareTableName(lx *lexer) stateFn {
339 func lexTableNameEnd(lx *lexer) stateFn {
357 func lexKeyStart(lx *lexer) stateFn {
379 func lexBareKey(lx *lexer) stateFn {
398 func lexKeyEnd(lx *lexer) stateFn {
413 func lexValue(lx *lexer) stateFn {
471 func lexArrayValue(lx *lexer) stateFn {
495 func lexArrayValueEnd(lx *lexer) stateFn {
517 func lexArrayEnd(lx *lexer) stateFn {
525 func lexInlineTableValue(lx *lexer) stateFn {
548 func lexInlineTableValueEnd(lx *lexer) stateFn {
570 func lexInlineTableEnd(lx *lexer) stateFn {
578 func lexString(lx *lexer) stateFn {
600 func lexMultilineString(lx *lexer) stateFn {
627 func lexRawString(lx *lexer) stateFn {
647 func lexMultilineRawString(lx *lexer) stateFn {
672 func lexMultilineStringEscape(lx *lexer) stateFn {
682 func lexStringEscape(lx *lexer) stateFn {
709 func lexShortUnicodeEscape(lx *lexer) stateFn {
721 func lexLongUnicodeEscape(lx *lexer) stateFn {
734 func lexNumberOrDateStart(lx *lexer) stateFn {
751 func lexNumberOrDate(lx *lexer) stateFn {
772 func lexDatetime(lx *lexer) stateFn {
790 func lexNumberStart(lx *lexer) stateFn {
803 func lexNumber(lx *lexer) stateFn {
823 func lexFloat(lx *lexer) stateFn {
839 func lexBool(lx *lexer) stateFn {
860 func lexCommentStart(lx *lexer) stateFn {
869 func lexComment(lx *lexer) stateFn {
880 func lexSkip(lx *lexer, nextState stateFn) stateFn {