separated parser from tokenizer, wrote some tokenizer tests
This commit is contained in:
5
config/testdata/comments.tok
vendored
Normal file
5
config/testdata/comments.tok
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# one two three
|
||||
one two three
|
||||
#four five six
|
||||
four five six #seven eight nine
|
||||
# EOF
|
8
config/testdata/quotes.tok
vendored
Normal file
8
config/testdata/quotes.tok
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
"one" "two three"
|
||||
|
||||
"four five"
|
||||
|
||||
" #six" "" "seven" "ei" "ght"
|
||||
|
||||
"multi
|
||||
line"
|
6
config/testdata/simple-broken.tok
vendored
Normal file
6
config/testdata/simple-broken.tok
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
one two three
|
||||
four five
|
||||
|
||||
|
||||
six
|
||||
|
1
config/testdata/simple.tok
vendored
Normal file
1
config/testdata/simple.tok
vendored
Normal file
@ -0,0 +1 @@
|
||||
one two three four five six
|
Reference in New Issue
Block a user