Documentation ¶
Index ¶
- Variables
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetLiteral() string
- func (m *Token) GetType() Type
- func (m *Token) Marshal() (dAtA []byte, err error)
- func (m *Token) MarshalTo(dAtA []byte) (int, error)
- func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) Size() (n int)
- func (m *Token) String() string
- func (m *Token) Unmarshal(dAtA []byte) error
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthToken = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowToken = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupToken = fmt.Errorf("proto: unexpected end of group") )
View Source
var Type_name = map[int32]string{
0: "ILLEGAL",
1: "EOF",
2: "IDENT",
3: "INT",
4: "STRING",
5: "COMMA",
6: "SEMICOLON",
7: "LPAREN",
8: "RPAREN",
9: "LBRACKET",
10: "RBRACKET",
11: "AND",
12: "OR",
13: "EQ",
14: "NEQ",
15: "GT",
16: "LT",
17: "GTE",
18: "LTE",
19: "ADD",
20: "SUB",
21: "MUL",
22: "DIV",
23: "TRUE",
24: "FALSE",
}
View Source
var Type_value = map[string]int32{
"ILLEGAL": 0,
"EOF": 1,
"IDENT": 2,
"INT": 3,
"STRING": 4,
"COMMA": 5,
"SEMICOLON": 6,
"LPAREN": 7,
"RPAREN": 8,
"LBRACKET": 9,
"RBRACKET": 10,
"AND": 11,
"OR": 12,
"EQ": 13,
"NEQ": 14,
"GT": 15,
"LT": 16,
"GTE": 17,
"LTE": 18,
"ADD": 19,
"SUB": 20,
"MUL": 21,
"DIV": 22,
"TRUE": 23,
"FALSE": 24,
}
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct { Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=shield.token.Type" json:"type,omitempty"` Literal string `protobuf:"bytes,2,opt,name=literal,proto3" json:"literal,omitempty"` }
func (*Token) Descriptor ¶
func (*Token) GetLiteral ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type Type ¶
type Type int32
const ( Type_ILLEGAL Type = 0 Type_EOF Type = 1 Type_IDENT Type = 2 Type_INT Type = 3 Type_STRING Type = 4 Type_COMMA Type = 5 Type_SEMICOLON Type = 6 Type_LPAREN Type = 7 Type_RPAREN Type = 8 Type_LBRACKET Type = 9 Type_RBRACKET Type = 10 Type_AND Type = 11 Type_OR Type = 12 Type_EQ Type = 13 Type_NEQ Type = 14 Type_GT Type = 15 Type_LT Type = 16 Type_GTE Type = 17 Type_LTE Type = 18 Type_ADD Type = 19 Type_SUB Type = 20 Type_MUL Type = 21 Type_DIV Type = 22 Type_TRUE Type = 23 Type_FALSE Type = 24 )
func LookupIdent ¶
func (Type) EnumDescriptor ¶
Click to show internal directories.
Click to hide internal directories.