Go to file
Maurice Makaay 1e7ec7553a Tiny fix in variable naming, because the test had grown in a different direction. 2019-05-28 23:59:02 +00:00
.gitignore Initial commit 2019-05-21 14:45:32 +00:00
LICENSE Initial commit 2019-05-21 14:45:32 +00:00
README.md Initial import of the parsekit module. 2019-05-21 14:49:44 +00:00
example_basiccalculator1_test.go Added a nice example that shows how a []string-based type can be turned into a parser that fills its own slice elements during parsing. 2019-05-28 14:38:04 +00:00
example_basiccalculator2_test.go Simplified calculator 2 example. 2019-05-28 23:51:19 +00:00
example_dutchpostcode_test.go Added crude loop protection to the parser, which should prevent parsers running in circles (happened to me a few times too). 2019-05-28 23:01:23 +00:00
example_hellomatcher_test.go Cleanup of stuff that I don't need anymore, because it has been fully deprecated. Also added some tests for panic() calls in parsekit, which brings test coverage to 100%. It's not a goal as such, but it's good to know that I got there without cheaty tests :) 2019-05-28 13:41:58 +00:00
example_helloparser1_test.go Cleanup of stuff that I don't need anymore, because it has been fully deprecated. Also added some tests for panic() calls in parsekit, which brings test coverage to 100%. It's not a goal as such, but it's good to know that I got there without cheaty tests :) 2019-05-28 13:41:58 +00:00
example_helloparser2_test.go Added a nice example that shows how a []string-based type can be turned into a parser that fills its own slice elements during parsing. 2019-05-28 14:38:04 +00:00
examples_state_test.go Tiny fix in variable naming, because the test had grown in a different direction. 2019-05-28 23:59:02 +00:00
examples_test.go Cleanup of stuff that I don't need anymore, because it has been fully deprecated. Also added some tests for panic() calls in parsekit, which brings test coverage to 100%. It's not a goal as such, but it's good to know that I got there without cheaty tests :) 2019-05-28 13:41:58 +00:00
go.mod Trying to fix module paths (I have no idea what I'm doing :-) The idea is to make parsekit into a separate module in another repo. 2019-05-21 15:05:37 +00:00
parsehandler.go Simplified calculator 2 example. 2019-05-28 23:51:19 +00:00
parsehandler_error.go Cleanup of stuff that I don't need anymore, because it has been fully deprecated. Also added some tests for panic() calls in parsekit, which brings test coverage to 100%. It's not a goal as such, but it's good to know that I got there without cheaty tests :) 2019-05-28 13:41:58 +00:00
parsehandler_on.go Added crude loop protection to the parser, which should prevent parsers running in circles (happened to me a few times too). 2019-05-28 23:01:23 +00:00
parsehandler_routing.go Cleanup of stuff that I don't need anymore, because it has been fully deprecated. Also added some tests for panic() calls in parsekit, which brings test coverage to 100%. It's not a goal as such, but it's good to know that I got there without cheaty tests :) 2019-05-28 13:41:58 +00:00
parsehandler_stringbuf.go Cleanup of stuff that I don't need anymore, because it has been fully deprecated. Also added some tests for panic() calls in parsekit, which brings test coverage to 100%. It's not a goal as such, but it's good to know that I got there without cheaty tests :) 2019-05-28 13:41:58 +00:00
parsehandler_test.go Simplified calculator 2 example. 2019-05-28 23:51:19 +00:00
parsekit.go Added crude loop protection to the parser, which should prevent parsers running in circles (happened to me a few times too). 2019-05-28 23:01:23 +00:00
parsekit_test.go Cleanup of stuff that I don't need anymore, because it has been fully deprecated. Also added some tests for panic() calls in parsekit, which brings test coverage to 100%. It's not a goal as such, but it's good to know that I got there without cheaty tests :) 2019-05-28 13:41:58 +00:00
stringbuf.go Pfff, okay, so today I found a rather nice way of writing a parser that can hold some internal state, while stell holding on to the basic principle of having a function signature the applies to every parse handler in the system. By using methods instead of stand-alone functions, it is possible to let the accompanying struct hold on to the required state. Implemented this principle for the two calculator example projects. The rest is quite broken now, sorry :-p 2019-05-27 23:24:07 +00:00
stringbuf_test.go Initial import of the parsekit module. 2019-05-21 14:49:44 +00:00
tokenhandler.go Cleanup of stuff that I don't need anymore, because it has been fully deprecated. Also added some tests for panic() calls in parsekit, which brings test coverage to 100%. It's not a goal as such, but it's good to know that I got there without cheaty tests :) 2019-05-28 13:41:58 +00:00
tokenhandler_test.go Cleanup of stuff that I don't need anymore, because it has been fully deprecated. Also added some tests for panic() calls in parsekit, which brings test coverage to 100%. It's not a goal as such, but it's good to know that I got there without cheaty tests :) 2019-05-28 13:41:58 +00:00
tokenhandlers_builtin.go Added a nice example that shows how a []string-based type can be turned into a parser that fills its own slice elements during parsing. 2019-05-28 14:38:04 +00:00
tokenhandlers_builtin_test.go Added crude loop protection to the parser, which should prevent parsers running in circles (happened to me a few times too). 2019-05-28 23:01:23 +00:00

README.md

go-parsekit

A toolkit that facilitates writing text parsers, based on a flexible combination of parser/combinator technology and a parser state machine.