Alejandro Mery
|
be53431904
|
lexer: to simplify states, Lexer.EmitError() assumes EOF if nil is passed
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
3edf777c68
|
lexer: add Lexer.AtLeast() to gather input data from the Feeder
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
36427e059f
|
lexer: add initial generic Lexer
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
90e9fc47cf
|
lexer: add Step()/NewLine()/Reset() methods to TokenPosition
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
6e05cdbb28
|
lexer: add generic Token
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
866fb8374b
|
runes.Feeder: renamed Buffered() to Runes() and Len() to Buffered() for consistency with bufio
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
7828f8d92f
|
envexp: drop package in favour of asciigoat.org/parsers/shexp
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Nagy Károly Gábriel
|
65f2605a8a
|
fix NewFeeder function help
This will fix the Go Help for function NewFeeder
|
3 years ago |
Alejandro Mery
|
23f53c4da7
|
runes: rework NewFeeder() to prevent double wrapping
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
576937268b
|
runes: introduce Feeder
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
2271848acf
|
attic/ebnf: `go fmt`
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
89ecdcd103
|
COPYING: add MIT licence text
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
17208cdc64
|
attic: ebnf/ moved to attic/ebnf
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
e18e66860d
|
runes: imported github.com/JamesOwenHall/json2.Scanner as Probe
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
f88c3f9b0c
|
envexp: bind Reader and Expander
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
3e2356a3f6
|
envexp: turn Expander from interface to struct
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
607fdb6ee4
|
envexp: add top-level Expand() using Getenv
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
2ba6afae4b
|
envexp: add placeholder for Expander
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
aa7bc06646
|
envexp: rename env package to envexp
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
9f4f801066
|
env: extend Reader{} to implement io.Closer
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
26366f82bd
|
env: add skeleton of io.Reader wrapper
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
d289643458
|
build-sys: replace gofmt.sh with `make fmt`
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
76e566b92e
|
go.mod: add initial go.mod
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
3 years ago |
Alejandro Mery
|
33dbfec54a
|
ebnf/token: Add initial TokenType
|
10 years ago |
Alejandro Mery
|
2797253a96
|
scanner: adjust comments to make golint happy
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
71599c9adb
|
scanner: change NewScannerFromString() to accept empty strings
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
538ebfe37b
|
scanner.Scanner: rename NextLine() to NewLine()
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
42a75bf4d9
|
ebnf: add some doc
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
100d6d5cec
|
scanner: add initial dummy doc
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
f9405e7fe1
|
scanner.Scanner: Add .NewLine() helper to increment line of the cursor
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
7a4713a353
|
scanner.Scanner: add StepBack(), Reset() and Skip() methods
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
d4dbc28aee
|
scanner.Scanner: initial struct and methods for the low level text scanner
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
ca274e51a3
|
scanner.Terminal: A literal (utf8) string within a document
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
e55382c583
|
Import gofmt.sh helper from asciigoat.org/ini
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
2991b67b39
|
ebnf: replace ebnf.ebnf with grammar from the iso 14977
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
494855f0d1
|
ebnf:doc: add final draft of iso 14977
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
b402063aae
|
ebnf:doc: add syntax file for vim
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
6487b2a49d
|
ebnf: add empty package, and ebnf grammar copied from wikipedia
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
10 years ago |
Alejandro Mery
|
5a096152a2
|
Create asciigoat.org/core package
Signed-off-by: Alejandro Mery <amery@geeks.cl>
|
11 years ago |