
Hi everyone, Transformers 0.1 is now released. This release is a bundle of tools containing SDF tools for the C++ grammar, a C++ parser, and some examples of C++ rewriting tools using Stratego/XT environment. To use it, you will need Stratego/XT 0.9.5 available at http://www.stratego-language.org/ Of course, Transformers is available at http://transformers.lrde.epita.fr/ Have a good night, -- Valentin David valentin@lrde.epita.fr

Hey Transformers,
Transformers 0.1 is now released.
Congrats! Do you want to announce this to stratego-announce as well? If you want to do this, then it would nice if the announcement contains some more information on the project and what's offered by the Transformers package. I've just installed the release on the latest sources of StrategoXT. This resulted in a few minor problems at installation time. After a succesful installation, I cannot figure out how to parse C++ files. I'm using the latest StrategoXT sources. Is that a problem? --------------------------------------------------------------------- configure: help2man is required, it wasn't available by default on my SuSE 9.0 system. Maybe it is a good idea to include the man page in a distribution? --------------------------------------------------------------------- configure: "stlport" wasn't available at my system as well. Might be useful to mention this requirement explicitly. --------------------------------------------------------------------- make: No pp entry found for: (1,["\"sdf-2.1\""]). This is our fault and probably does not occur in 0.9.5. Meanwhile, the pretty-printer has been improved considerably and has been upgraded to SDF as it appears in pgen 2.0. I've just fixed the latest pp-sdf to handle the old SDF constructs as well. The new ones are preferred. I don't think this results in problems. I think we should add the transformers packages to our buildfarm. We are immediately warned if we break some of your tools then :) . We could also dailybuild tarballs and RPMs of Transformers. --------------------------------------------------------------------- - make check after succesful installation: Is this ok? ... XFAIL: warn/implicit-typename3 FAIL: warn/incomplete1 FAIL: warn/inline1 PASS: warn/noreturn-1 FAIL: warn/oldcast1 PASS: warn/pedantic1 FAIL: warn/return-reference PASS: warn/weak1 =========================================== 281 of 654 tests failed Please report to transformers@lrde.epita.fr =========================================== make[3]: *** [check-TESTS] Error 1 make[3]: Leaving directory `/home/martin/wc/transformers-0.1/cxx-grammar/test/gcc' --------------------------------------------------------------------- A test by hand: ------------------------------------------ int main() { } ------------------------------------------ ./parse-cxx -i donothing.cpp ------------------------------------------ sglr: error in /tmp/TransformerOwrMHo, line 1, col 7: character `i' (\x69) unexpected ------------------------------------------ A more complex one: ------------------------------------------ #include <iostream> int main() { std::cout << "Hello world!\n"; } ------------------------------------------ ./parse-cxx -i hello.cpp -of ast --verbose 10 ------------------------------------------ run sglr: FILE("/tmp/StrategoXTz3XkqY") xtc-find: Cxx.tbl xtc-load: Cxx.tbl xtc-loaded: Cxx.tbl xtc-find: /pkg/transformers/2004-04-20-16-38/share/cxx-grammar/Cxx.tbl xtc-find: sglr xtc-load: sglr xtc-loaded: sglr xtc-find: /home/martin/.nix-profile/bin/sglr sglr: opening parse table /pkg/transformers/2004-04-20-16-38/share/cxx-grammar/Cxx.tbl sglr: parsing file /tmp/StrategoXTz3XkqY (208 tokens) sglr: shifting [= ] / 7/208 ( 3%). sglr: writing error output to /tmp/StrategoXTvuPF5I sglr: error in /tmp/StrategoXTz3XkqY, line 1, col 13: character `d' (\x64) unexpected run sglr: FILE("/tmp/StrategoXTVcIeYt") ------------------------------------------ Line 1 is: namespace std { } ------------------------------------------ I suppose I'm doing something wrong, but I'm not sure about the direction Cheers, -- Martin Bravenboer --------------------------------------------------------------------- Center for Software Technology Institute of Information and Computing Sciences Utrecht University

Hey again,
- make check after succesful installation: A test by hand:
NON-DIGIT NON-DIGIT | DIGIT* -> ID Ah, I've found the problem. sdf-bracket is no longer applied in pp-sdf because it was broken. I'll fix it and apply it in pp-sdf again. -- Martin Bravenboer --------------------------------------------------------------------- Center for Software Technology Institute of Information and Computing Sciences Utrecht University
participants (3)
-
Akim Demaille
-
Martin Bravenboer
-
valentin@lrde.epita.fr