Commit Graph

291 Commits

Author SHA1 Message Date
vicky 15ee352334 added update of the line_number for lookahead 2022-05-30 20:50:31 +02:00
Maximilien Rigaut c18b145d2d
Small error corrections 2022-05-29 21:58:04 +02:00
vicky 8507ff0615 minor doc corrections, added finalsemantictype to lists 2022-05-29 19:02:45 +02:00
vicky ca4ba47fa0 removed traceback from log message 2022-05-29 19:01:50 +02:00
vicky 247d8f088e added lookahead logic, improved some debugs functions 2022-05-29 19:01:30 +02:00
Maximilien Rigaut 6258a77d07
A couple more tests in exports 2022-05-29 05:06:34 +02:00
Maximilien Rigaut f87c8b2c69
Fixed the float error 2022-05-29 05:06:11 +02:00
Maximilien Rigaut c7974ffe07
Added a couple of docs 2022-05-28 16:36:02 +02:00
Maximilien Rigaut afb9c7905c Reached 100% coverage, still needs to be more thourough 2022-05-28 05:38:59 +02:00
Maximilien Rigaut 3f39c344c6 reached 90% bad coverage 2022-05-28 04:42:43 +02:00
Maximilien Rigaut 03c16e5bc7 Lint 2022-05-28 03:17:28 +02:00
Maximilien Rigaut 528001db2c Added an option of the Get Link (the number of traceback to rewind to) 2022-05-28 03:16:13 +02:00
Maximilien Rigaut 15a087da92 Tested most of the preparser 2022-05-28 03:15:43 +02:00
Maximilien Rigaut 0188916332 Tested the link between syntax & context_manager 2022-05-28 03:01:24 +02:00
Maximilien Rigaut 6aeb179a41 Added extra dict_ methods 2022-05-28 02:56:35 +02:00
Maximilien Rigaut 5587e85df8 Coverage of ifmain 2022-05-27 23:45:59 +02:00
Maximilien Rigaut aa9fdadc1f Added the error line 2022-05-27 23:45:42 +02:00
vicky 8f01a4342b added Linebreak Container 2022-05-27 20:05:43 +02:00
vicky f6944a274b accounted for container logic 2022-05-27 19:59:48 +02:00
vicky 254405b384 changed error name 2022-05-27 19:59:25 +02:00
vicky 5c936a603d added print_all methods for debugging, added container logic 2022-05-27 19:59:07 +02:00
vicky bd308d71ca corrected typos 2022-05-27 19:58:27 +02:00
vicky 19e185f251 added AddFirstElementToLabel class for structural element tokens 2022-05-27 17:01:24 +02:00
Maximilien Rigaut 43b8fe5a32 Added some of the doc for usage 2022-05-27 16:18:31 +02:00
vicky ddd2bc55e6 added more context managering 2022-05-26 19:58:35 +02:00
vicky 070fc4da26 added comments at the top of everymodule to hopefully help with imports 2022-05-25 10:59:45 +02:00
vicky 6f4cc857d0 added todo 2022-05-21 20:01:23 +02:00
vicky a8bcb13480 added todo 2022-05-21 19:28:46 +02:00
vicky 7db2c40be8 implemented alias replacement 2022-05-21 19:27:36 +02:00
vicky b4ff63c2cc added todo and corrected typo 2022-05-21 19:27:35 +02:00
vicky 1091c6a484 added a todo 2022-05-21 19:14:52 +02:00
Maximilien Rigaut b60eedd2d2 A bug correction that could easily bite us in the butt 2022-05-19 05:59:32 +02:00
Maximilien Rigaut 3d4c134479 Couple of typos and tests 2022-05-19 05:59:12 +02:00
vicky ead69fcd14 added method split_optionals 2022-05-18 21:31:54 +02:00
vicky 337273a09e finalised get_image_from_config 2022-05-18 21:31:31 +02:00
vicky 7f12e46f5a added usage of split method 2022-05-18 21:30:56 +02:00
vicky e2d42c2e5f moved chunk of code to syntax 2022-05-18 21:30:39 +02:00
vicky 3b8dff05dd changed simple to double quotes 2022-05-18 21:30:14 +02:00
Maximilien Rigaut eff4b16d6c Cursed code inspection, testing it is really a pain and a half. 2022-05-18 07:23:55 +02:00
Maximilien Rigaut 3e00a31041 Corrected a couple of typos and left some todo 2022-05-18 07:22:53 +02:00
Maximilien Rigaut c7104175bc Typos and simplification 2022-05-18 07:22:17 +02:00
Maximilien Rigaut 9d0c9af6f4 Reverted changes, this .map needs a manual 2022-05-18 07:21:29 +02:00
Maximilien Rigaut 6460ac1766 Moved the tools to normal modules to use with the error_mngr 2022-05-18 04:20:53 +02:00
Maximilien Rigaut ec2d15e2ab Stack inspection 2022-05-18 04:16:48 +02:00
vicky 75f3941c1d implemented do_imports, do_replacements; started on image imports 2022-05-17 20:17:42 +02:00
vicky 897b4de4f5 added format_optionals and image 2022-05-17 20:16:58 +02:00
vicky d8ce58c026 added #noqa 2022-05-17 20:16:34 +02:00
vicky f0fcb61e7f added image markup to config 2022-05-17 20:16:20 +02:00
vicky 03be9cbba4 fixed error text display 2022-05-17 18:02:59 +02:00
vicky a03262a3fd fixed error text display, added todo for tests 2022-05-17 18:02:48 +02:00
vicky c868f6ef23 removed two duplicate code lines (comments) 2022-05-17 18:02:23 +02:00
Maximilien Rigaut c7e16be1f6 Final version of rich_tree 2022-05-16 22:00:17 +02:00
Maximilien Rigaut 0d8df69d45 Couple of typos and bad implementation of rich_tree 2022-05-16 21:14:23 +02:00
Maximilien Rigaut d5c127f957 Bugsquashing & Typos 2022-05-16 19:17:38 +02:00
Maximilien Rigaut 1df76eda13 Raised Coverage to 93% 2022-05-16 02:55:06 +02:00
Maximilien Rigaut 9723597ff0 Raised Coverage to 86% 2022-05-16 01:58:11 +02:00
Maximilien Rigaut ec3c38855b Unused imports 2022-05-16 01:04:49 +02:00
Maximilien Rigaut 411b7ae512 Correcting some regular errors 2022-05-15 21:45:22 +02:00
vicky 68d8af9fd2 put the last regex in the syntax file 2022-05-11 00:27:43 +02:00
vicky c21d034217 put the last regex in the syntax file 2022-05-11 00:27:38 +02:00
vicky 8d4f7c4d5f added custom error message for get_template 2022-05-11 00:27:12 +02:00
vicky 104e665d8a added a dictionary checker and added log display to log_exception 2022-05-11 00:26:52 +02:00
vicky a605b6675e added .module to import and defined contains 2022-05-11 00:26:21 +02:00
vicky f80ec9cf66 changed todo to future 2022-05-11 00:26:01 +02:00
vicky 12bbc0bf3a refactored error management (sent raised errors to the error manager) 2022-05-10 22:34:25 +02:00
vicky c540c66f6f created the whole export function minus some todos 2022-05-07 20:16:14 +02:00
vicky db70eeb69e added todos 2022-05-07 20:15:56 +02:00
vicky f86b647c21 added templates to bootstrap.yml 2022-05-07 20:15:33 +02:00
vicky 3867cb3d34 testing relation to other modules 2022-05-05 19:43:32 +02:00
vicky 0593e8400b edited config loader to work properly 2022-05-05 19:43:14 +02:00
vicky ec4ce51f47 added template config file 2022-05-05 19:43:00 +02:00
vicky 9ade76e79a added maps, maps validation and debug, fetch methods for html and class inserts. 2022-04-08 17:29:01 +02:00
vicky d6ec5d9afa added BaseContainer and attached methods 2022-03-28 19:50:39 +02:00
vicky 7aae84e916 added reparsing 2022-03-28 17:57:12 +02:00
Maximilien Rigaut d37c043cd9 PEP8 2022-03-26 13:14:31 +01:00
Maximilien Rigaut 2949830f0c Added test for quotations 2022-03-26 13:14:24 +01:00
vicky bcfb07e5c3 merge 2022-03-25 20:03:24 +01:00
vicky 11b1900034 added blockquotes 2022-03-25 20:02:50 +01:00
Maximilien Rigaut f68e177e02 Bare specs of the context_mngr.py 2022-03-24 14:47:20 +01:00
Maximilien Rigaut 961bfafc62 Quickfix of reparse and ajusted coverage and tests. 2022-03-24 13:35:07 +01:00
Maximilien Rigaut c8c863d892 Optional fix, the solution was to make optional non-optional 2022-03-24 11:45:30 +01:00
vky af73e3c3e5 made hyperlinks markdown-compatible 2022-03-22 15:22:18 +01:00
Maximilien Rigaut ef06018559 Reached 100% coverage and added tests for reparse. Still some errors on this optionnal parameter. 2022-03-21 08:48:28 +01:00
Maximilien Rigaut a556466999 Added all syntax elements to tests, still to reach 100% 2022-03-20 18:07:35 +01:00
vicky caa499accd added class token, created reparse function, fixed lists, added todos 2022-03-19 21:49:52 +01:00
Maximilien Rigaut 76f4f139bd Added tokens for basic elements.
Some more PEP and testing shenanigans.
2022-03-19 10:12:51 +01:00
Maximilien Rigaut 5694596f90 Added some cursed frame inspection to get line numbers, formatted some tests. 2022-03-19 09:33:47 +01:00
vky 8e694a87da fixed a lot of the testing and a little of the syntax 2022-03-19 01:15:30 +01:00
vky 69a962dac9 corrected table_separators and their tests 2022-03-18 23:46:32 +01:00
vicky 2c700b7f80 added summary elements 2022-03-18 23:01:06 +01:00
vicky f1cf952bf2 added rustic table syntax 2022-03-18 22:52:46 +01:00
Maximilien Rigaut 5bc833990b Merged with origin, corrected some tests and reached 100% code coverage 2022-03-17 19:53:53 +01:00
vicky f6e8897522 made things test-compliant, or tests thing-compliant 2022-03-17 17:58:59 +01:00
vicky a9b9d85ce1 lots of fixing 2022-03-17 17:20:39 +01:00
vicky 99f0fe26d4 merge 2022-03-17 15:22:21 +01:00
vicky e5ae755e8c fixed et 2022-03-17 15:01:24 +01:00
Maximilien Rigaut ea4654c2ed Ajusted tests for changed requirements & spec 2022-03-16 20:49:55 +01:00
vicky 3c5bfc6a5c replaced ... to pp.skipTo 2022-03-16 16:23:25 +01:00
vicky 29609e1a9b refactored http_characters to url_characters 2022-03-16 16:16:22 +01:00
vicky 7b4cc8b836 removed pp.Word from http_characters and added pp.Literal to make et_* pp objects 2022-03-16 16:15:59 +01:00
vicky 05b064a7aa rewrote linebreaks in line_to_replace 2022-03-16 16:09:14 +01:00
vicky 0155530708 nomenclature is good 2022-03-16 16:03:30 +01:00
vicky 25dccbb2d0 defined enhanced_text (very tentative) 2022-03-16 15:52:35 +01:00
vicky 22a5f9005d added Optional Token 2022-03-16 15:50:28 +01:00
vicky 921ec0b1e5 redefined enhanced_text (tentative) 2022-03-16 15:49:18 +01:00
vicky dde18df5cf added one_display 2022-03-16 15:41:37 +01:00
vicky 63f5989ece fixed one_header 2022-03-16 15:39:27 +01:00
vicky 90b2d29409 fixed one_ulist 2022-03-16 15:26:57 +01:00
vicky 043f7c3043 fixed one_olist 2022-03-16 15:22:04 +01:00
vicky b1129d60d3 fixed il_link 2022-03-16 15:12:24 +01:00
vicky 9972c91431 Changed ~~ to << and >> 2022-03-16 15:09:56 +01:00
vicky d666719ecc pulled 2022-03-16 15:08:09 +01:00
vicky 5902f86332 changed http_characters to pp.commons.url and structural_elements to pp.CaselessLiteral and ^ to | 2022-03-16 14:57:42 +01:00
Dandaedre a981df2487 Reached 100% coverage and did updated the markup to match the new
parsing direction
2022-03-16 14:54:39 +01:00
Dandaedre 072e03a786 Updated the TODOs (sic) 2022-03-15 15:48:22 +01:00
Dandaedre 2711c51eb7 Updated the TODOs 2022-03-15 15:27:56 +01:00
Dandaedre 6e122d0c71 Merged with the latest syntax from Vky 2022-03-15 14:44:41 +01:00
Dandaedre 15c0e9bed1 Added a token class and muted some PEP annoyance 2022-03-15 14:16:22 +01:00
Dandaedre bd158f2a8f PEP annoyance 2022-03-15 14:15:33 +01:00
vicky 4099f615e4 finished adding new elements, without names for now 2022-03-15 13:01:35 +01:00
vicky 74b953df78 resolved merge 2022-03-15 11:52:00 +01:00
vicky 7079c27311 adjusted structural elements 2022-03-15 11:48:42 +01:00
Dandaedre ee2985d077 A little more doc on tests 2022-03-15 11:34:22 +01:00
Dandaedre c3adc16edc Draft for tests syntax 2022-03-14 18:25:05 +01:00
Dandaedre 4cc90cd270 PEP and better __eq__ 2022-03-14 15:44:13 +01:00
Dandaedre 3198c53736 Added an UninplementedToken for testing purposes 2022-03-14 15:16:30 +01:00
Maximilien Rigaut 7323f5f6a8 Added some TODO 2022-03-14 13:53:17 +01:00
vicky 1d9be95016 resolved merge 2022-03-14 13:32:35 +01:00
vicky 9a0b90f9f6 added syntax for lists, links, header and divs 2022-03-14 13:27:45 +01:00
Maximilien Rigaut d59c2ccd5c Added a couple of debug functions 2022-03-10 18:36:08 +01:00
vicky 11e4df26ac created function for testing and readability 2022-03-10 17:17:46 +01:00
vicky 22fdbe6926 more syntax 2022-03-09 18:03:58 +01:00
Maximilien Rigaut f62b9e5594 PEP & Fixed tests 2022-03-06 22:15:42 +01:00
vicky b7f8082397 finished preparsing syntax 2022-03-06 17:18:26 +01:00
vicky 51b1b63ea7 removed outdated regexp and implemented parse_shortcuts_and_images 2022-03-06 17:17:55 +01:00
vicky 0a1749399e inspect change 2022-03-06 15:49:59 +01:00
Maximilien Rigaut 72a0950c97 Covered the syntéax function, the matching is to check tho 2022-03-04 16:20:44 +01:00
Maximilien Rigaut 3d3c8364e7 Fixed test units for preparser 2022-03-04 14:28:16 +01:00
vicky 15d67cfa85 small code refactor and started implementing Tokens and semantic parsing 2022-03-03 22:52:19 +01:00
vicky 5a5fd30923 added error manager import 2022-03-03 22:51:39 +01:00
dandaedre 578a01b1c7 Added a message function 2022-02-22 23:43:09 +01:00
dandaedre 7be326b540 Got the (mock) cover to 93% util actual implementation is done, this will be all we can get. 2022-02-22 17:41:33 +01:00
dandaedre 06e94206f7 Some test got broken, some other pointed to a neat cursor error 2022-02-22 16:18:13 +01:00
dandaedre 53d19ae364 Added comments and mock functions for the actions left to do 2022-02-22 16:02:51 +01:00
vky d67d169e15 first draft of preparsing 2022-02-21 19:59:56 +01:00
dandaedre 5d9cb6d093 Added all preparser tests 2022-02-20 21:39:55 +01:00
dandaedre bc41cb8541 Finished a better implementation of the config 2022-02-20 21:24:45 +01:00
dandaedre e0a5c88175 Finished a better implementation of the config 2022-02-20 19:14:34 +01:00
dandaedre 4129507661 Mostly PEP, some formating 2022-02-20 19:14:07 +01:00
dandaedre a2575c20b8 Mostly PEP 2022-02-20 17:59:43 +01:00