Lines Matching defs:Lexer

41 type Lexer struct {  struct
42 Data []byte // Input data given to the lexer.
44 start int // Start of the current token.
45 pos int // Current unscanned position in the input stream.
46 token token // Last scanned token, if token.kind != tokenUndef.
48 firstElement bool // Whether current element is the first in array or an object.
49 wantSep byte // A comma or a colon character, which need to occur before a token.
51 UseMultipleErrors bool // If we want to use multiple errors.
52 …atalError error // Fatal error occurred during lexing. It is usually a syntax error.
53 …// Semantic errors occurred during lexing. Marshalling will be continued after finding this errors.
57 func (r *Lexer) FetchToken() {
165 func (r *Lexer) fetchNull() {
179 func (r *Lexer) fetchTrue() {
193 func (r *Lexer) fetchFalse() {
208 func (r *Lexer) fetchNumber() {
290 func (r *Lexer) processEscape(data []byte) (int, error) {
341 func (r *Lexer) fetchString() {
385 func (r *Lexer) scanToken() {
394 func (r *Lexer) consume() {
400 func (r *Lexer) Ok() bool {
406 func (r *Lexer) errParse(what string) {
422 func (r *Lexer) errSyntax() {
426 func (r *Lexer) errInvalidToken(expected string) {
463 func (r *Lexer) GetPos() int {
468 func (r *Lexer) Delim(c byte) {
482 func (r *Lexer) IsDelim(c byte) bool {
490 func (r *Lexer) Null() {
501 func (r *Lexer) IsNull() bool {
509 func (r *Lexer) Skip() {
520 func (r *Lexer) SkipRecursive() {
569 func (r *Lexer) Raw() []byte {
579 func (r *Lexer) IsStart() bool {
585 func (r *Lexer) Consumed() {
605 func (r *Lexer) unsafeString() (string, []byte) {
623 func (r *Lexer) UnsafeString() string {
629 func (r *Lexer) UnsafeBytes() []byte {
635 func (r *Lexer) String() string {
649 func (r *Lexer) Bytes() []byte {
671 func (r *Lexer) Bool() bool {
684 func (r *Lexer) number() string {
697 func (r *Lexer) Uint8() uint8 {
714 func (r *Lexer) Uint16() uint16 {
731 func (r *Lexer) Uint32() uint32 {
748 func (r *Lexer) Uint64() uint64 {
765 func (r *Lexer) Uint() uint {
769 func (r *Lexer) Int8() int8 {
786 func (r *Lexer) Int16() int16 {
803 func (r *Lexer) Int32() int32 {
820 func (r *Lexer) Int64() int64 {
837 func (r *Lexer) Int() int {
841 func (r *Lexer) Uint8Str() uint8 {
858 func (r *Lexer) Uint16Str() uint16 {
875 func (r *Lexer) Uint32Str() uint32 {
892 func (r *Lexer) Uint64Str() uint64 {
909 func (r *Lexer) UintStr() uint {
913 func (r *Lexer) UintptrStr() uintptr {
917 func (r *Lexer) Int8Str() int8 {
934 func (r *Lexer) Int16Str() int16 {
951 func (r *Lexer) Int32Str() int32 {
968 func (r *Lexer) Int64Str() int64 {
985 func (r *Lexer) IntStr() int {
989 func (r *Lexer) Float32() float32 {
1006 func (r *Lexer) Float32Str() float32 {
1022 func (r *Lexer) Float64() float64 {
1039 func (r *Lexer) Float64Str() float64 {
1055 func (r *Lexer) Error() error {
1059 func (r *Lexer) AddError(e error) {
1065 func (r *Lexer) AddNonFatalError(e error) {
1073 func (r *Lexer) addNonfatalError(err *LexerError) {
1085 func (r *Lexer) GetNonFatalErrors() []*LexerError {
1091 func (r *Lexer) JsonNumber() json.Number {
1115 func (r *Lexer) Interface() interface{} {
1173 func (r *Lexer) WantComma() {
1179 func (r *Lexer) WantColon() {