Commit graph

30 commits

Author SHA1 Message Date
Simon Brooke b4f796aca4 Major overhaul of rule metadata, so upversioned to 0.3.0
Many tests do not pass at this time.
2023-07-19 20:35:40 +01:00
Simon Brooke 8c2e44b42a Tactical commit before experimenting with a major change. 2023-07-19 09:19:18 +01:00
Simon Brooke 4b721219bd Continued work on cleaning up the parser 2023-07-18 22:11:11 +01:00
Simon Brooke 93a0f3ea1d Flow rule generation very nearly correct!
Not all tests pass; additional conditions are not yet evaluated.
2023-07-15 10:16:21 +01:00
Simon Brooke 2a5d598f28 Started work on generating code from flow rules. 2023-07-12 23:43:59 +01:00
Simon Brooke 256f9efd5e Major overhaul of the parsing of disjunct expressions
... which it turns out have NEVER worked, and badly written tests were masking the problem. Also tagging rules with metadata as first step towards mixing production and flow rules.
2023-07-12 20:31:07 +01:00
Simon Brooke fb39f1ee9c Some work on flow, mainly code tidy-up 2023-07-11 09:15:56 +01:00
simon a68a3c9135 Revert to using 'core' parser rather than new declarative parser, which still
has bugs.
2016-12-27 15:53:29 +00:00
simon 88d707a32e Fixed all failing tests. Two issues:
1. The regression test failures were both errors in the tests rather than in
the code under test;
2. The failure in the 'bulk' test relates to the fact that the new declarative
parser cannot cope with trailing whitespace.
2016-09-23 12:53:00 +01:00
simon 3168c1b2fb Trying to get code quality up, but in the process I've broken something -
I think, the simplifier.
2016-08-13 19:45:43 +01:00
simon d2a73ba408 Major restructuring, switched over to use the new declarative parser.
Some rules in the bulk test file no longer parse, but all rules in the
demonstration rule-sets do.
2016-08-10 20:11:17 +01:00
simon 9836cbff50 All tests pass. I should now be able to ditch the old parser and use the
new, but first I want to do some major code restructuring.
2016-08-10 19:23:16 +01:00
simon 1c6ceb899c Substantially closer to the declarative parser fully working, but not
yet perfect.
2016-08-10 13:30:15 +01:00
simon e40d89fdef Very considerable progress on the new parser. The deer/wolves rules still fail,
as does one complicated form of neighbours rule; but I'm almost there.
2016-08-03 17:41:48 +01:00
Simon Brooke 5db1055027 Some work on unit testing declarative parser. 2016-08-03 10:07:18 +01:00
Simon Brooke b23aae26ce Commit before alph-ordering grammar. 2016-01-02 14:24:40 +00:00
Simon Brooke 77c7dc4a91 Further substantial progress made, but it still doesn't completely work. 2015-12-29 14:11:36 +00:00
Simon Brooke b08881a99e Added many more unit tests; parser appears to be working correctly,
generator still needs work. But very promising!
2015-12-28 19:46:18 +00:00
Simon Brooke edadbd469b Added tests for mw-parser.bulk 2014-08-13 19:23:04 +01:00
Simon Brooke 21c1044a6d Much more work on test coverage, exposed probable bug. 2014-08-13 19:20:38 +01:00
Simon Brooke 34bb22dbfe Worked on test coverage. 2014-08-13 18:06:33 +01:00
Simon Brooke 91310af2d8 Rule language now working cleanly with no errors showing. Very occasional
null pointer exception during parsing, not yet diagnosed.
2014-07-20 15:15:12 +01:00
Simon Brooke 4acb2617be Added the '...neighbours within distance...' feature to the rule language. 2014-07-18 15:15:12 +01:00
Simon Brooke 540e8df404 Comprehensive and systematic unit testing of all rule language constructs. 2014-07-17 09:51:53 +01:00
Simon Brooke 98f1579869 Fixed the 'Keyword cannnot be cast to Number' bug. 2014-07-15 09:22:24 +01:00
Simon Brooke 0d3ca990c1 Woohoo! Feature complete. All the language features I need to reimplement
the core rule set in the rule language now compile.
2014-07-08 20:22:58 +01:00
Simon Brooke 727e5ccb11 Yay! Fixed the rule compiling bug! Rules now compile correctly. 2014-07-07 22:21:12 +01:00
Simon Brooke 2dc5e394cc Added some moderately-real tests. 2014-07-07 19:45:27 +01:00
Simon Brooke 3545e6f129 Much progress (including simple neighbour conditions) but still problems
with list conditions.
2014-07-05 17:12:52 +01:00
simon 6a0967287e Initial commit - but hey! It works! 2014-07-03 23:27:54 +01:00