Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Inventive hack to get flex raising exceptions on parse error
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 19 Nov 2019 00:15:21 +0000 (01:15 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 19 Nov 2019 00:20:37 +0000 (01:20 +0100)
commit7e1931bdf65d5bc5f13b64688dc215e1585931c9
tree1a85215322108313ac11862c8fc654ee15fc4f2b
parent56b2d2888ffca9ac2e5ad234f5944fc4a70abafb
Inventive hack to get flex raising exceptions on parse error

The core of this (over 2500 lines) patch reads as follows:
-    fprintf(stderr, "%s\n", flexml_err_msg);
+    surf_parse_error(flexml_err_msg);

But the code we want to change is generated by Flex, so ... I have to
augment the perl script that rewrite some parts of the Flex result for
that purpose. Because yes, we do have such a perl script.

At the end, we need to regenerate the flex parser with the latest
version of Flex to apply this patch, resulting in that jumbo patch.
src/simdag/dax_dtd.c
src/simdag/dax_dtd.h
src/surf/xml/platf.hpp
src/surf/xml/simgrid_dtd.c
src/surf/xml/surfxml_sax_cb.cpp
tools/cmake/scripts/fixup_simgrid_dtd_l.pl