Alejandro Mery
|
986b6d1c6d
|
Merge pull request 'parser: Unquoted(), AcceptQuotedString() and SplitCommaArray' (#9)
Reviewed-on: #9
|
1 year ago |
Alejandro Mery
|
d41cd781d9
|
parser: introduce SplitCommaArray to splits comma separated strings
removing whitespace and respecting quoted literals.
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
651fcb6215
|
parser: Unquoted(), AcceptQuotedString()
TODO: reduce quoted strings with escaped characters
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
d8af7821e4
|
Merge pull request 'parser: introduce NewError() and ErrPlusPosition()' (#8)
Reviewed-on: #8
|
1 year ago |
Alejandro Mery
|
8f3e59ec36
|
parser: introduce ErrPlusPosition to apply a position offset to a lexer.Error
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
d316031c44
|
basic: cleanup using parser.NewError()
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
c3883cbb0d
|
parser: introduce NewError() to create lexer.Error using lexer.Position
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
314c004efd
|
Merge pull request 'parser: introduce TextParser and refactor Parser' (#7)
Reviewed-on: #7
|
1 year ago |
Alejandro Mery
|
30a86e170b
|
parser: use GetPositionalLength() on TextParser.Discard() and TextParser.Emit()
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
8cc75da138
|
parser: introduce GetPositionalLength()
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
01cd4139bd
|
parser.Parser: refactor using TextParser
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
e34e8eda0a
|
parser.TextParser: AcceptNewLine() and AcceptRune()
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
ecff6f6016
|
parser: introduce generic-ish TextParser
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
79fc27f965
|
chore: update dependencies
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
11c5ce70a6
|
Merge pull request 'basic: implement Section.String() and Field.String()' (#5)
Reviewed-on: #5
|
1 year ago |
Alejandro Mery
|
16d52188f6
|
basic: implement Section.String() and Field.String()
to ease development
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
a4f981610e
|
Merge pull request 'basic: introduce basic one-shot INI-style decoder' (#4)
Reviewed-on: #4
|
1 year ago |
Alejandro Mery
|
a1e20fa3b6
|
basic: introduce Document.WriteTo() and Document.String()
producing an INI-style representation of the Document
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
174f72c4cf
|
basic: introduce basic one-shot INI-style decoder
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
c92e0df47b
|
chore: update asciigoat.org/core
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
cf100578c0
|
Merge pull request 'README: add initial description of the package' (#3)
Reviewed-on: #3
|
1 year ago |
Alejandro Mery
|
2eacc65215
|
README: add initial description of the package
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
169379f5c6
|
Merge pull request 'parser: implement basic dosini parsing' (#2)
Reviewed-on: #2
|
1 year ago |
Alejandro Mery
|
eb36c195c0
|
parser: implement basic dosini parsing
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
1090a374f0
|
parser: add initial Parser emitting non-whitespace tokens
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
a15deb7e42
|
tools: add stringer support
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
1dd7cb19a8
|
Merge pull request 'build-sys: import build system from darvaza.org/core' (#1)
Reviewed-on: #1
|
1 year ago |
Alejandro Mery
|
e85f8c5e3f
|
build-sys: import build system from darvaza.org/core
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |
Alejandro Mery
|
651b9691bf
|
Initial commit
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
1 year ago |