208 Commits

Author SHA1 Message Date
Josh Holtrop
39c5ebb686 include pcre.h in tmpl/parser.cc 2010-05-11 12:10:20 -04:00
Josh Holtrop
15c5751632 restructured Parser::parseInputFile() a bit and added code-gathering functionality 2010-05-11 11:04:23 -04:00
Josh Holtrop
ec8af293e1 explicitly listed tmpl.h as a dependency of "all" to avoid .dep generation problems 2010-05-11 10:40:31 -04:00
Josh Holtrop
07717ec5ba added tmpl.{cc,h} build rules 2010-05-10 16:56:05 -04:00
Josh Holtrop
3a8d9ca55d token matching loop storing ovector for longest match so the longest-matching token does not need to be re-matched to obtain subpattern match strings 2010-05-07 15:24:50 -04:00
Josh Holtrop
1113cdb7d2 parse() calling pcre_exec() to try to match tokens 2010-05-07 14:37:15 -04:00
Josh Holtrop
67c051c866 expanded parse() to compile all tokens, ready to match them 2010-05-07 13:07:21 -04:00
Josh Holtrop
8cc4edfca3 adding NUL byte to file read in parser 2010-05-06 15:44:40 -04:00
Josh Holtrop
44bf780a42 added read_istream() in tmpl/parser.cc 2010-05-05 15:13:57 -04:00
Josh Holtrop
bfc4fc59c7 generated parse() returns bool status 2010-05-04 16:12:55 -04:00
Josh Holtrop
31c35a9335 updated c_escape(); added TokenDefinition::getCString() 2010-05-04 10:57:17 -04:00
Josh Holtrop
7756bd696b added initial tmpl files 2010-05-03 16:22:55 -04:00
Josh Holtrop
beab28d7b6 changed dependency files into hidden files 2010-05-03 15:43:20 -04:00
Josh Holtrop
21715a03c7 added c_escape() in TokenDefinition module 2010-05-03 14:47:58 -04:00
Josh Holtrop
c1070fb021 TokenDefinition storing name and definition, not pcre RE 2010-05-03 13:59:03 -04:00
Josh Holtrop
876cc5da78 fixed dependency files in Makefile 2010-05-03 13:58:23 -04:00
Josh Holtrop
48efc1be97 doing a little more in Parser::write() 2010-04-30 13:04:11 -04:00
Josh Holtrop
b7dab7f0a6 began expanding Parser::write() 2010-04-29 15:51:01 -04:00
Josh Holtrop
6d3a5403c3 reworked argument handling slightly, added --extension 2010-04-29 15:40:07 -04:00
Josh Holtrop
9720ea001f added --namespace argument 2010-04-29 15:14:21 -04:00
Josh Holtrop
2b23657a0c changed "outfile" parameter to be a base name, added "classname" parameter 2010-04-28 17:27:36 -04:00
Josh Holtrop
bd45bfbab2 moved Parser::parseInputFile() into Parser.cc and cleaned it up a little 2010-04-27 14:32:26 -04:00
Josh Holtrop
ffb1274a0d refactored into buildOutputFilename() 2010-04-27 13:59:02 -04:00
Josh Holtrop
076cd122b0 moved parse_input() to Parser::parseInputFile() 2010-04-27 13:52:21 -04:00
Josh Holtrop
2cc33bde74 added Parser::write() and output file name calculation logic 2010-04-27 13:40:20 -04:00
Josh Holtrop
ed0754d4e7 added check in Makefile for populated refptr directory 2010-04-27 12:59:52 -04:00
Josh Holtrop
c02077275d re-added refptr submodule on master branch 2010-04-27 12:30:09 -04:00
Josh Holtrop
68e15bed9f removed empty refptr directory 2010-04-27 12:22:42 -04:00
Josh Holtrop
9abd06a702 removed "encoding" option, added "outfile" option 2010-04-27 12:15:03 -04:00
Josh Holtrop
448b26a767 added RuleDefinition class 2010-04-09 17:40:31 -04:00
Josh Holtrop
5a220b91d0 added Parser class and a parameter for it to parse_input() 2010-04-08 16:15:17 -04:00
Josh Holtrop
269eddf81d added TokenDefinition class; creating TokenDefinition objects for each token in the input file 2010-04-08 15:10:11 -04:00
Josh Holtrop
a6683fc37b updated README 2010-04-08 11:33:54 -04:00
Josh Holtrop
1ae6878fb1 got parsing working using PCRE; updated testinput.i 2010-04-08 11:15:55 -04:00
Josh Holtrop
42ada6ee17 building strings matched from rules and tokens 2010-04-07 21:15:14 -04:00
Josh Holtrop
f4249274bd slight reorganization 2010-04-07 21:03:31 -04:00
Josh Holtrop
1907029d56 converted from pcrecpp to pcre 2010-04-07 20:59:28 -04:00
Josh Holtrop
095a2009af began new parse_input() based on pcrecpp 2010-04-07 11:57:46 -04:00
Josh Holtrop
a78b3af9f8 gutted parse_input() to fix compilation 2010-04-06 20:03:30 -04:00
Josh Holtrop
1dccdd1013 added refptr submodule 2010-04-06 19:27:19 -04:00
Josh Holtrop
82b081ff6c stripped out UTF components 2010-04-06 19:24:13 -04:00
Josh Holtrop
d16cf33d5c updated parse_input() to parse "rules" and "tokens" sections 2010-04-03 23:30:17 -04:00
Josh Holtrop
2f06a95257 fixed bug in SECTION_NAME rule 2010-04-01 22:36:22 -04:00
Josh Holtrop
68a4bf6240 added unistring::operator+=(), working on parser more 2010-04-01 22:33:30 -04:00
Josh Holtrop
ed03f19a6d added unistring type, working on parser 2010-04-01 20:12:34 -04:00
Josh Holtrop
cbb64f82e5 began working on state machine for parse_input() 2010-04-01 19:46:10 -04:00
Josh Holtrop
403b8028b5 initial parse-input.* files 2010-04-01 17:20:58 -04:00
Josh
68b36d0310 cleaned up debug output 2010-04-01 17:08:45 -04:00
Josh
920478dfa4 fixed parameter order in iconv_open() 2010-04-01 16:58:42 -04:00
Josh Holtrop
c0581902ae still playing 2010-03-30 20:21:40 -04:00