Exemplo n.º 1
0
func T_test() {
	var input antlr3rt.CharStream
	input = antlr3rt.NewStringStream("A00\"ab0\"A01")
	var lexer antlr3rt.Lexer
	lexer = TCreate(input)
	var tokenStream antlr3rt.TokenStream
	tokenStream = antlr3rt.NewCommonTokenStream(lexer)
	fmt.Println(":", tokenStream.GetTokens(), ":")
}
Exemplo n.º 2
0
func t004lexer_test() {
	var input antlr3rt.CharStream
	input = antlr3rt.NewStringStream("ffofoo")
	var lexer antlr3rt.Lexer
	lexer = t004lexerCreate(input)
	var tokenStream antlr3rt.TokenStream
	tokenStream = antlr3rt.NewCommonTokenStream(lexer)
	fmt.Println(":", tokenStream.GetTokens(), ":")
}
Exemplo n.º 3
0
func t008lexer_test() {
	input := antlr3rt.NewStringStream("ffa")
	lexer := t008lexerCreate(input)
	tokenStream := antlr3rt.NewCommonTokenStream(lexer)
	fmt.Println(":", tokenStream.GetTokens(), ":")
}
Exemplo n.º 4
0
func t011lexer_test() {
	input := antlr3rt.NewStringStream("Hello World\nfinally got there\nw00t__")
	lexer := t011lexerCreate(input)
	tokenStream := antlr3rt.NewCommonTokenStream(lexer)
	fmt.Println(":", tokenStream.GetTokens(), ":")
}