unicodeclasses

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/unicodeclasses"

	"github.com/antlr/antlr4/runtime/Go/antlr"
)

func main() {
	// Setup the input
	is := antlr.NewInputStream("...some text to parse...")

	// Create the Lexer
	lexer := unicodeclasses.NewUnicodeClasses(is)
	// There is no unicodeclasses 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

View Source
const (
	UnicodeClassesUNICODE_CLASS_LL = 1
	UnicodeClassesUNICODE_CLASS_LM = 2
	UnicodeClassesUNICODE_CLASS_LO = 3
	UnicodeClassesUNICODE_CLASS_LT = 4
	UnicodeClassesUNICODE_CLASS_LU = 5
	UnicodeClassesUNICODE_CLASS_ND = 6
	UnicodeClassesUNICODE_CLASS_NL = 7
)

UnicodeClasses tokens.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnicodeClasses

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

func NewUnicodeClasses

func NewUnicodeClasses(input antlr.CharStream) *UnicodeClasses

Jump to

Keyboard shortcuts

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