Documentation
¶
Index ¶
- func EnumSet(p *Parser) (*ast.EnumSet, error)
- func NewError(tok *token.Token, format string, args ...any) error
- func NewErrorWithEndToken(start *token.Token, end *token.Token, format string, args ...any) error
- func ParseArrayType(p *Parser) (*ast.Array, error)
- func ParseComment(p *Parser) (*ast.Comment, error)
- func ParseConst(p *Parser) (*ast.Const, error)
- func ParseCustomError(p *Parser) (customError *ast.CustomError, err error)
- func ParseDocument(p *Parser) (*ast.Document, error)
- func ParseEnum(p *Parser) (enum *ast.Enum, err error)
- func ParseExtend(p *Parser) (*ast.Extend, error)
- func ParseMapKeyType(p *Parser) (ast.Type, error)
- func ParseMapType(p *Parser) (*ast.Map, error)
- func ParseModel(p *Parser) (*ast.Model, error)
- func ParseModelField(p *Parser) (field *ast.Field, err error)
- func ParseOption(p *Parser) (option *ast.Option, err error)
- func ParseOptions(p *Parser) (*ast.Options, error)
- func ParseService(p *Parser) (service *ast.Service, err error)
- func ParseServiceMethod(p *Parser) (method *ast.Method, err error)
- func ParseServiceMethodArgument(p *Parser) (arg *ast.Arg, err error)
- func ParseServiceMethodReturnArg(p *Parser) (ret *ast.Return, err error)
- func ParseType(p *Parser) (ast.Type, error)
- func ParseValue(p *Parser) (value ast.Value, err error)
- func PrettyMessage(filename string, src string, start int, end int, msg string) string
- func PrettyMessageWithFilename(filename string, start int, end int, msg string) string
- func Validate(docs ...*ast.Document) error
- type Error
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorWithEndToken ¶
func ParseCustomError ¶
func ParseCustomError(p *Parser) (customError *ast.CustomError, err error)
func PrettyMessage ¶
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func NewWithFilenames ¶
Click to show internal directories.
Click to hide internal directories.