Documentation
¶
Overview ¶
Package scanner implements a tokeniser for lua. Inspired by https://talks.golang.org/2011/lex.slide#1
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Scanner)
func WithReservedGlobal ¶ added in v0.2.0
func WithReservedGlobal() Option
WithReservedGlobal makes "global" a reserved keyword (emitted as KwGlobal). By default "global" is a soft keyword handled by the parser.
func WithStartLine ¶
Click to show internal directories.
Click to hide internal directories.