Documentation
¶
Index ¶
- Constants
- func Parse(input io.Reader) (tokens []ast.HexToken, err error)
- func YYmain(filenames ...string) (interface{}, error)
- type Scanner
- func (yy *Scanner) Input() (byte, error)
- func (yy *Scanner) Lex() YYtype
- func (yy *Scanner) NewFile()
- func (yy *Scanner) Restart(input_file io.Reader)
- func (s *Scanner) Token(t int) YYtype
- func (s *Scanner) TokenByte(t int, value, mask byte, not bool) YYtype
- func (s *Scanner) TokenInteger(t int, i int) YYtype
- type YYcontext
- type YYtype
Constants ¶
View Source
const StringChainingThreshold int = 200
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scanner ¶
type Scanner struct {
In io.Reader
Out io.Writer
Lineno int
Filename string
Wrap func(*Scanner) bool
IsInteractive func(io.Reader) bool
Context YYcontext
Interactive bool
// contains filtered or unexported fields
}
func NewScanner ¶
func NewScanner() *Scanner
func (*Scanner) Restart ¶
* Immediately switch to a different input stream.
- @param input_file A readable stream. *
- @note This function does not reset the start condition to @c yyInitial .
Click to show internal directories.
Click to hide internal directories.