Documentation ¶
Overview ¶
Example ¶
package main import ( "bramp.net/antlr4/lexunicode" "github.com/antlr/antlr4/runtime/Go/antlr" ) func main() { // Setup the input is := antlr.NewInputStream("...some text to parse...") // Create the Lexer lexer := lexunicode.NewLexUnicode(is) // There is no lexunicode Parser so instead use the Lexer to read tokens. t := lexer.NextToken() for t.GetTokenType() != antlr.TokenEOF { // Do something with the token t = lexer.NextToken() } }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LexUnicode ¶
func NewLexUnicode ¶
func NewLexUnicode(input antlr.CharStream) *LexUnicode
Click to show internal directories.
Click to hide internal directories.