Documentation ¶
Index ¶
Constants ¶
View Source
const ( Token_EOF = iota Token_Unknown Token_LineEnd Token_Numeral Token_String Token_WhiteSpace Token_Identifier Token_UnixComment Token_CStyleComment Token_Colon // : Token_ParenL // ( Token_ParenR // ) Token_CurlyBraceL // { Token_CurlyBraceR // } Token_BracketL // [ Token_BracketR // ] Token_Dot // . Token_Enum // enum Token_Struct // struct Token_Assign // = )
自定义的token id
Variables ¶
This section is empty.
Functions ¶
func ParseFileList ¶
func ParseFileList(dset *model.DescriptorSet, filelist ...string) error
func ParseString ¶
func ParseString(script string) (*model.DescriptorSet, error)
Types ¶
type Context ¶
type Context struct { SourceName string *model.DescriptorSet *model.Descriptor *model.FieldDescriptor // contains filtered or unexported fields }
func (Context) CommentGroupByLine ¶
func (*Context) QuerySymbolPosString ¶
Click to show internal directories.
Click to hide internal directories.