Lines Matching defs:Lexer

45 type Lexer struct {  struct
46 Data []byte // Input data given to the lexer.
48 start int // Start of the current token.
49 pos int // Current unscanned position in the input stream.
50 token token // Last scanned token, if token.kind != tokenUndef.
52 firstElement bool // Whether current element is the first in array or an object.
53 wantSep byte // A comma or a colon character, which need to occur before a token.
55 UseMultipleErrors bool // If we want to use multiple errors.
56 …atalError error // Fatal error occurred during lexing. It is usually a syntax error.
57 …// Semantic errors occurred during lexing. Marshalling will be continued after finding this errors.
61 func (r *Lexer) FetchToken() {
169 func (r *Lexer) fetchNull() {
183 func (r *Lexer) fetchTrue() {
197 func (r *Lexer) fetchFalse() {
212 func (r *Lexer) fetchNumber() {
273 func (r *Lexer) unescapeStringToken() (err error) {
378 func (r *Lexer) fetchString() {
393 func (r *Lexer) scanToken() {
402 func (r *Lexer) consume() {
409 func (r *Lexer) Ok() bool {
415 func (r *Lexer) errParse(what string) {
431 func (r *Lexer) errSyntax() {
435 func (r *Lexer) errInvalidToken(expected string) {
472 func (r *Lexer) GetPos() int {
477 func (r *Lexer) Delim(c byte) {
491 func (r *Lexer) IsDelim(c byte) bool {
499 func (r *Lexer) Null() {
510 func (r *Lexer) IsNull() bool {
518 func (r *Lexer) Skip() {
529 func (r *Lexer) SkipRecursive() {
587 func (r *Lexer) Raw() []byte {
597 func (r *Lexer) IsStart() bool {
603 func (r *Lexer) Consumed() {
623 func (r *Lexer) unsafeString(skipUnescape bool) (string, []byte) {
648 func (r *Lexer) UnsafeString() string {
654 func (r *Lexer) UnsafeBytes() []byte {
660 func (r *Lexer) UnsafeFieldName(skipUnescape bool) string {
666 func (r *Lexer) String() string {
689 func (r *Lexer) StringIntern() string {
707 func (r *Lexer) Bytes() []byte {
733 func (r *Lexer) Bool() bool {
746 func (r *Lexer) number() string {
759 func (r *Lexer) Uint8() uint8 {
776 func (r *Lexer) Uint16() uint16 {
793 func (r *Lexer) Uint32() uint32 {
810 func (r *Lexer) Uint64() uint64 {
827 func (r *Lexer) Uint() uint {
831 func (r *Lexer) Int8() int8 {
848 func (r *Lexer) Int16() int16 {
865 func (r *Lexer) Int32() int32 {
882 func (r *Lexer) Int64() int64 {
899 func (r *Lexer) Int() int {
903 func (r *Lexer) Uint8Str() uint8 {
920 func (r *Lexer) Uint16Str() uint16 {
937 func (r *Lexer) Uint32Str() uint32 {
954 func (r *Lexer) Uint64Str() uint64 {
971 func (r *Lexer) UintStr() uint {
975 func (r *Lexer) UintptrStr() uintptr {
979 func (r *Lexer) Int8Str() int8 {
996 func (r *Lexer) Int16Str() int16 {
1013 func (r *Lexer) Int32Str() int32 {
1030 func (r *Lexer) Int64Str() int64 {
1047 func (r *Lexer) IntStr() int {
1051 func (r *Lexer) Float32() float32 {
1068 func (r *Lexer) Float32Str() float32 {
1084 func (r *Lexer) Float64() float64 {
1101 func (r *Lexer) Float64Str() float64 {
1117 func (r *Lexer) Error() error {
1121 func (r *Lexer) AddError(e error) {
1127 func (r *Lexer) AddNonFatalError(e error) {
1135 func (r *Lexer) addNonfatalError(err *LexerError) {
1147 func (r *Lexer) GetNonFatalErrors() []*LexerError {
1153 func (r *Lexer) JsonNumber() json.Number {
1177 func (r *Lexer) Interface() interface{} {
1235 func (r *Lexer) WantComma() {
1241 func (r *Lexer) WantColon() {