blob: e9f85a60855428e9ca109bc48f57c3ac16c57252 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package lexpr
// lexem represents part of parsed string.
type lexem struct {
Type lexType // Type of Lexem.
Value string // Value of Lexem.
Start int // Start position at input string.
End int // End position at input string.
}
// lexType represents type of current lexem.
type lexType int
// Some std lexem types
const (
lexEOF lexType = iota
tokError
number
str
word
op
funct
lp
rp
sep
)
|