MCPcopy Create free account
hub / github.com/z7zmey/php-parser / Lex

Method Lex

php5/parser.go:40–44  ·  view source on GitHub ↗

Lex proxy to lexer Lex

(lval *yySymType)

Source from the content-addressed store, hash-verified

38
39// Lex proxy to lexer Lex
40func (l *Parser) Lex(lval *yySymType) int {
41 t := l.Lexer.Lex(lval)
42 l.currentToken = lval.token
43 return t
44}
45
46func (l *Parser) Error(msg string) {
47 pos := &position.Position{

Callers

nothing calls this directly

Implementers 2

Parserphp7/parser.go
Parserphp5/parser.go

Calls 1

LexMethod · 0.65

Tested by

no test coverage detected