lexunicode

package
v0.0.0-...-4c43aeb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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

type LexUnicode struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewLexUnicode

func NewLexUnicode(input antlr.CharStream) *LexUnicode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL