Commit Graph

62 Commits

Author SHA1 Message Date
Robin Jadoul 8c91d4c42a Fix a stupid oversight 2016-05-30 19:03:48 +02:00
Robin Jadoul 8a817a9eff Fix the fix... 2016-05-30 17:18:37 +02:00
Robin Jadoul 063d73835a Fix for inverted character class ranges 2016-05-30 17:14:07 +02:00
Robin Jadoul 652ee18461 Give byte offset on regex parse errors 2016-05-30 17:08:30 +02:00
Robin Jadoul e425e9ff81 Improve regexLexer, especially character classes 2016-05-30 16:10:15 +02:00
Robin Jadoul 7f9c7aed44 WIP 2016-05-29 22:47:10 +02:00
Robin Jadoul 3fd362bf2d First work on using a Lexesis lexer in the regex parser 2016-05-29 21:06:15 +02:00
Robin Jadoul 3b69ec581d Small bugfix 2016-05-29 19:43:16 +02:00
Thomas Ave dbc79353e7 Use references instead of pointers for exceptions + catch regex parsing exceptions in inputparser and add more info before rethrowing 2016-05-29 19:00:20 +02:00
Robin Jadoul a24320099c Some more tests 2016-05-29 14:40:56 +02:00
Robin Jadoul 9392afc74c Fix minimization problems if the DFA only has 1 state 2016-05-29 14:22:32 +02:00
Robin Jadoul 80fa3383fd Add more accepting state information to dot output 2016-05-29 13:14:39 +02:00
Thomas Ave f87ce737fc make use of exceptions to pass errors to main instead of cout + exit(1) 2016-05-29 00:42:21 +02:00
Robin Jadoul e2517cf16a First test infrastructure 2016-05-28 21:04:39 +02:00
Robin Jadoul 536b4f44ac Move to another optparse fork 2016-05-28 15:29:34 +02:00
Robin Jadoul 78669c22e5 Fix re parsing where a - as last character in a class yielded a syntax error 2016-05-28 14:19:18 +02:00
Robin Jadoul 782c7a8649 Documentation 2016-05-27 19:08:36 +02:00
Robin Jadoul 23437e8f23 Remove no longer needed eCloseCache 2016-05-27 19:08:29 +02:00
Thomas Ave f3e0eb71d5 Added support for comments in lxs file 2016-05-27 17:34:00 +02:00
Robin Jadoul a6cf6b7372 Better handling for the lexer name 2016-05-27 17:19:46 +02:00
Robin Jadoul d5a7832746 Fix minimisation accepting state merging problem 2016-05-27 16:11:11 +02:00
Robin Jadoul 6b7a06510c Fix stupid . regex bug 2016-05-27 12:25:05 +02:00
Robin Jadoul 0735760eef Speed up: implement MultiRE 2016-05-27 12:16:18 +02:00
Thomas Ave 81f3c022c8 Make inputparser more robust + add minimize 2016-05-27 00:15:06 +02:00
Robin Jadoul a4dbf3d195 Compress the tables in c++ backend, fixes #2 2016-05-26 17:13:20 +02:00
Robin Jadoul 1e460a94bd Remove debug output 2016-05-26 16:13:42 +02:00
Robin Jadoul 3024de07bf Main runner 2016-05-26 16:05:15 +02:00
Robin Jadoul f908449520 Fix some backend code 2016-05-26 16:01:24 +02:00
Robin Jadoul b9da21dbc5 Implementation of driver code 2016-05-26 16:00:59 +02:00
Robin Jadoul bf8813677a Fix minimisation bug with accepting tokens 2016-05-26 15:56:06 +02:00
Robin Jadoul 399a123bef Fix stupid mistake in CMake install rule 2016-05-26 13:20:50 +02:00
Robin Jadoul ff8af2a5a3 Add docopt to CMakeLists 2016-05-26 12:17:44 +02:00
Thomas Ave fe6b242501 Backendmanager implementation 2016-05-25 21:50:34 +02:00
Robin Jadoul daddd47c43 Cpp backend: take note of dead states when building table 2016-05-25 21:26:52 +02:00
Robin Jadoul 842867bab4 Fix horrible bugs 2016-05-25 21:26:04 +02:00
Robin Jadoul 87d1cf65ae Actual cleanup 2016-05-25 19:00:38 +02:00
Robin Jadoul 23d0857100 Small cleanup 2016-05-25 18:59:16 +02:00
Robin Jadoul 3d59a970f8 First implementation for c++ backend, waiting for template and main
integration
2016-05-25 18:50:31 +02:00
Thomas Ave a1220fee64 removed cout in inputparser + added different kinds of whitespace in find_first_not_of 2016-05-25 18:32:47 +02:00
Thomas Ave 2b66d58138 mstch abstraction in template done 2016-05-25 18:30:26 +02:00
Robin Jadoul 90e7427c4b Link against mstch 2016-05-25 17:23:48 +02:00
Robin Jadoul 8a59d19e5c Speed up mssc 2016-05-24 18:09:38 +02:00
Robin Jadoul 8ed2fd41e1 Small bugfix for re character class parsing
+ update to the printing of regexes
2016-05-24 18:09:21 +02:00
Robin Jadoul 4ae4e2b12f Some small beauty fixes 2016-05-24 12:01:38 +02:00
Robin Jadoul ae28ed1c65 Add beginning implementation of backends 2016-05-24 11:49:41 +02:00
Robin Jadoul 03a6964246 Update CMakeLists 2016-05-24 11:49:41 +02:00
Thomas Ave 272e9f657a First version of input parser 2016-05-24 00:46:23 +02:00
Thomas Ave 2bff76aac6 ENFA merge implemented 2016-05-23 21:05:34 +02:00
Robin Jadoul ee6e2f1bae Fix segfault in ENFA::eClose 2016-05-10 16:25:03 +02:00
Robin Jadoul e860a68fc9 No escape chars in character classes 2016-05-10 16:08:51 +02:00