Versions in this module Expand all Collapse all v0 v0.2.0 May 9, 2024 v0.1.1 Nov 16, 2022 Changes in this version + const AnnotationDelimiterPart + const ArrayOpen + const CommentSign + const ContextCloseSign + const ContextOpenSign + const DoubleQuote + const EOF + const LinkSymbol + const ObjectOpen + const RegexDelimiter + var ErrRecursionDetected = errors.New("recursion detected") + func IsNewLine(c byte) bool + type Lexeme struct + func NewLexeme(type_ LexemeType, begin, end bytes.Index, file *fs.File) *Lexeme + func (lex Lexeme) Begin() bytes.Index + func (lex Lexeme) End() bytes.Index + func (lex Lexeme) File() *fs.File + func (lex Lexeme) String() string + func (lex Lexeme) Type() LexemeType + func (lex Lexeme) Value() bytes.Bytes + type LexemeEvent struct + type LexemeEventType uint8 + const AnnotationBegin + const AnnotationEnd + const ContextClose + const ContextOpen + const EnumBegin + const EnumEnd + const KeywordBegin + const KeywordEnd + const ParameterBegin + const ParameterEnd + const SchemaBegin + const SchemaEnd + const TextBegin + const TextEnd + func (e LexemeEventType) IsBeginning() bool + func (e LexemeEventType) IsEnding() bool + func (e LexemeEventType) IsSingle() bool + func (e LexemeEventType) String() string + func (e LexemeEventType) ToLexemeType() LexemeType + type LexemeType uint8 + const Annotation + const ContextExplicitClosing + const ContextExplicitOpening + const Enum + const Json + const Keyword + const Parameter + const Schema + const Text + func (t LexemeType) String() string + type Scanner struct + func NewJApiScanner(file *fs.File) *Scanner + func (s *Scanner) CurrentIndex() bytes.Index + func (s *Scanner) File() *fs.File + func (s *Scanner) Next() (*Lexeme, *jerr.JApiError) + func (s *Scanner) SetCurrentIndex(i bytes.Index) + type Stack struct + func (s *Stack) AddIncludeTraceToError(je *jerr.JApiError) + func (s *Stack) Empty() bool + func (s *Stack) Pop() *Scanner + func (s *Stack) Push(scanner *Scanner, at bytes.Index) error + func (s *Stack) ToDirectiveIncludeTracer() directive.IncludeTracer