diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-06 21:31:46 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-10 00:40:16 +0900 |
commit | f89d021bbe134e3efa0d015a41e9712960cdd009 (patch) | |
tree | 28c6d49611f09dad186b0f6fc4c1a42864a2f7cb /spec/test/tree_lexer.go | |
parent | Split SymbolTable's APIs into reader/writer (diff) | |
download | urubu-f89d021bbe134e3efa0d015a41e9712960cdd009.tar.gz urubu-f89d021bbe134e3efa0d015a41e9712960cdd009.tar.xz |
Import source code of lexer generator
From: https://github.com/nihei9/maleeni
Diffstat (limited to 'spec/test/tree_lexer.go')
-rw-r--r-- | spec/test/tree_lexer.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/test/tree_lexer.go b/spec/test/tree_lexer.go index 18032f7..8bb1c87 100644 --- a/spec/test/tree_lexer.go +++ b/spec/test/tree_lexer.go @@ -1,10 +1,9 @@ -// Code generated by maleeni-go. DO NOT EDIT. +// Code generated by vartan-go. DO NOT EDIT. package test import ( "fmt" "io" - "io/ioutil" ) type ModeID int @@ -99,7 +98,7 @@ type Lexer struct { // NewLexer returns a new lexer. func NewLexer(spec LexSpec, src io.Reader, opts ...LexerOption) (*Lexer, error) { - b, err := ioutil.ReadAll(src) + b, err := io.ReadAll(src) if err != nil { return nil, err } |