func runLexer(input []byte) []Item {
	x := New(input)
	var items []Item
	for {
		item := x.NextItem()
		items = append(items, item)
		if item.Type == IonEOF || item.Type == IonError {
			break
		}
	}
	return items
}
// Gather the items emitted from the Lexer into a slice.
Gather the items emitted from the Lexer into a slice.
// Gather the items emitted from the Lexer into a slice .
func runLexer(input []byte) []Item {
	x := New(input)
	var items []Item
	for {
		item := x.NextItem()
		items = append(items, item)
		if item.Type == IonEOF || item.Type == IonError {
			break
		}
	}
	return items
}
func runLexer ( input [ ] byte ) [ ] Item { x := New ( input ) var items [ ] Item for { item := x . NextItem ( ) items = append ( items , item ) if item . Type == IonEOF || item . Type == IonError { break } } return items }
Gather the items emitted from the Lexer into a slice.
Gather the items emitted from the Lexer into a slice .