Commit Graph

790 Commits

Author SHA1 Message Date
Dimitri Fontaine
c55ce55b31 Add direct support for regexp in our ABNF grammar. 2013-09-09 16:56:43 +02:00
Dimitri Fontaine
792458f625 In the example.lisp package no use for full notation. 2013-09-09 14:43:59 +02:00
Dimitri Fontaine
935f88c818 In the example, add the package we get the functions from for clarity. 2013-09-09 14:35:20 +02:00
Dimitri Fontaine
2b78ae0e7a Some documentation about the ABNF package API, with a usage example. 2013-09-09 14:24:05 +02:00
Dimitri Fontaine
6e4edc4560 Split ABNF implementation into its own Quicklisp ready system. 2013-09-09 14:03:28 +02:00
Dimitri Fontaine
726fa724c4 Use abnf- as a keyword prefix rather than rule-. 2013-09-09 13:54:04 +02:00
Dimitri Fontaine
7b33db0076 Avoid symbol clashes with cl-ppcre parse tree symbols (such as :alternation). 2013-09-09 11:05:46 +02:00
Dimitri Fontaine
9025c58c4f Add the RFC 5424 ABNF grammar for syslog messages, and fix char.char.char parsing. 2013-09-08 21:14:14 +02:00
Dimitri Fontaine
815e4fded0 Use the default lookup table when expanding definitions. 2013-09-08 21:13:44 +02:00
Dimitri Fontaine
e533143031 Clean-up trailing parens and type problems (testing on CCL). 2013-09-08 14:18:51 +02:00
Dimitri Fontaine
170a4832dc Fix parse-abnf-grammar to actually create the parser, add a simple test case. 2013-09-08 00:20:02 +02:00
Dimitri Fontaine
cfc4d46081 Have abnf::parse-abnf-grammar actually return a usable cl-ppcre scanner. 2013-09-08 00:01:25 +02:00
Dimitri Fontaine
d6c6b13d0b Implement "registering rules" to capture parts of the ABNF in the resulting parser. 2013-09-07 23:52:58 +02:00
Dimitri Fontaine
af9f8103dd Fix a comment. 2013-09-07 23:39:42 +02:00
Dimitri Fontaine
4db28c5287 Fix the parser to distinguish between reading numbers and char codes. 2013-09-07 23:33:00 +02:00
Dimitri Fontaine
fb0370ea4b We don't need to produce groups from the ABNF itself. 2013-09-07 23:32:36 +02:00
Dimitri Fontaine
cc50052160 Implement ruleset expanding into a cl-ppcre regular expression parse-tree. 2013-09-07 23:18:10 +02:00
Dimitri Fontaine
c0e0ba840a Indentation fix. 2013-09-07 23:17:40 +02:00
Dimitri Fontaine
591554b606 Bug fix ABNF parser main production (we did sort out toplevel-element). 2013-09-05 23:07:52 +02:00
Dimitri Fontaine
573e9af1de Actually allow parsing the syslog draft syntax... 2013-09-05 23:05:05 +02:00
Dimitri Fontaine
0668298faa Our abnf parser now is able to actually parse the syslog draft 15 syntax. 2013-09-05 22:34:33 +02:00
Dimitri Fontaine
725c66f278 First stab at the ABNF parser generator, for easy user edits of syslog message grammar. 2013-09-05 00:14:55 +02:00
Dimitri Fontaine
1f42318bb2 Import DBF v3 file reader from Xach, with permissions. 2013-08-31 23:11:54 +02:00
Dimitri Fontaine
33253c85cf Syslog receiver: assorted fixes, some test cases. 2013-08-31 23:11:23 +02:00
Dimitri Fontaine
ff275e69f1 Preliminary parsing of syslog messages. 2013-08-29 11:42:49 +02:00
Dimitri Fontaine
f03c3e9cde Document libmysqlclient-dev dependency in the installation steps. 2013-08-28 10:37:52 +02:00
Dimitri Fontaine
3421305dc8 Remove unused testing code. 2013-08-28 10:37:36 +02:00
Dimitri Fontaine
0af0ac315c Remove useless block of example code. 2013-08-21 17:26:36 +02:00
Dimitri Fontaine
a4901d546f Guess the column types from the first line... 2013-08-20 00:34:17 +02:00
Dimitri Fontaine
f3b6054432 Begin working on importing from zip files with plenty of wild guessing... 2013-08-19 23:38:58 +02:00
Dimitri Fontaine
6b7af735ae Fix parsing of GUCs, accept either = or to. 2013-08-09 11:54:20 +02:00
Dimitri Fontaine
19e43297b4 Review the README file, we're still pretty light on docs. 2013-08-09 10:01:37 +02:00
Dimitri Fontaine
6f6f40051a Fix a typo. 2013-08-08 18:29:11 +02:00
Dimitri Fontaine
59b931bae4 Fix the comment for the pgloader.mysql::fix-nulls function. 2013-08-08 17:14:54 +02:00
Dimitri Fontaine
8bfb525d2d Fix MySQL empty strings when returned as NULLs... 2013-08-08 17:11:11 +02:00
Dimitri Fontaine
e78106c60b Implement GUCs handling. 2013-08-08 17:10:33 +02:00
Dimitri Fontaine
d0ded0a917 Cleanup the casting rules and transforms implementation. 2013-08-08 17:10:02 +02:00
Dimitri Fontaine
5ed766c570 Fully integrate data transformation rules. 2013-08-07 18:42:48 +02:00
Dimitri Fontaine
990c20d137 First stab at implementing parsed casting rules. 2013-08-06 17:28:45 +02:00
Dimitri Fontaine
7b2b208e59 Actually produce code from the LOAD DATABASE FROM command. 2013-08-05 18:23:27 +02:00
Dimitri Fontaine
d385a14897 Add *cast-rules* to keep *default-cast-rules* as default values. 2013-08-05 15:57:47 +02:00
Dimitri Fontaine
51b3ad795e Add INTO clause to load database from, and fix the clause. 2013-08-05 15:57:14 +02:00
Dimitri Fontaine
c4679ffd5b Add some transform utilities to be made available in the command language. 2013-07-30 23:20:38 -07:00
Dimitri Fontaine
d0e392e4a8 Fix parsing type names in CAST definitions. 2013-07-30 23:17:33 -07:00
Dimitri Fontaine
f94b17ac1e Add tests to the casting rules support, and fix it. 2013-07-30 23:09:28 -07:00
Dimitri Fontaine
96e81d3f76 Implement parsing of the USING functions for data transformations. 2013-07-30 22:32:47 -07:00
Dimitri Fontaine
800df8e91d Use the new casting rules facilities in mysql.lisp 2013-07-30 21:15:26 -07:00
Dimitri Fontaine
3c5c384837 Implement dynamic casting rules. 2013-07-16 17:43:35 +02:00
Dimitri Fontaine
238ef6e8b8 Implement parsing a LOAD DATABASE FROM command syntax. 2013-06-07 18:49:43 +02:00
Dimitri Fontaine
7d874ffcca Settle on a command language and begin implementing it. 2013-05-09 21:59:28 +02:00