diff options
author | fche <fche> | 2005-05-21 01:35:34 +0000 |
---|---|---|
committer | fche <fche> | 2005-05-21 01:35:34 +0000 |
commit | 2b066ec1b8801b08052a68282ce34ef9c425ae8f (patch) | |
tree | d0b8aadc2521e2fbf1adde2d330bd7a941587087 /parsetest.cxx | |
parent | a199030a268b007580b57a83b511f97bbb65996f (diff) | |
download | systemtap-steved-2b066ec1b8801b08052a68282ce34ef9c425ae8f.tar.gz systemtap-steved-2b066ec1b8801b08052a68282ce34ef9c425ae8f.tar.xz systemtap-steved-2b066ec1b8801b08052a68282ce34ef9c425ae8f.zip |
* at long last, a more full-bodied snapshot
2005-05-20 Frank Ch. Eigler <fche@redhat.com>
Many changes throughout. Partial sketch of translation output.
* elaborate.*: Elaboration pass.
* translate.*: Translation pass.
* staptree.*: Simplified for visitor concept.
* main.cxx: Translator mainline.
* *test.cxx: Removed.
* testsuite/*: Some new tests, some changed for newer syntax.
Diffstat (limited to 'parsetest.cxx')
-rw-r--r-- | parsetest.cxx | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/parsetest.cxx b/parsetest.cxx deleted file mode 100644 index 6293a2f5..00000000 --- a/parsetest.cxx +++ /dev/null @@ -1,38 +0,0 @@ -// toy driver -// Copyright 2005 Red Hat Inc. -// GPL - - -#include "staptree.h" -#include "parse.h" -#include <iostream> - - -int main (int argc, char *argv []) -{ - int rc = 0; - - if (argc > 1) - { - for (int i = 1; i < argc; i ++) - { - parser p (argv[i]); - stapfile* f = p.parse (); - if (f) - f->print (cout); - else - rc = 1; - } - } - else - { - parser p (cin); - stapfile* f = p.parse (); - if (f) - f->print (cout); - else - rc = 1; - } - - return rc; -} |