From 9c0c0e4652824a0bf8f4da2175278b129fac6809 Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 15 Mar 2005 22:38:27 +0000 Subject: 2005-03-15 Frank Ch. Eigler * TODO: New file. Include some probe-point-provider syntax examples. * parse.cxx (lexer::scan, parser::parse_literal): Support hex, octal numbers via strtol. (parse_probe, parse_probe_point): Modify for dotted syntax. * staptree.cxx: Ditto. * parsetest.cxx, semtest.cxx: Print parse/sem results even if .stp files were given on command line. * parse.h, staptree.h: Rename probe_point_spec -> probe_point. * runtest.sh: New test-runner front-end script. * Makefile.am: Use it for TESTS_ENVIRONMENT. * testsuite/*: Update probe point syntax. Add a bunch of new tests. --- testsuite/parseko/five.stp | 16 ++++++++++++++++ testsuite/parseko/six.stp | 8 ++++++++ 2 files changed, 24 insertions(+) create mode 100755 testsuite/parseko/five.stp create mode 100755 testsuite/parseko/six.stp (limited to 'testsuite/parseko') diff --git a/testsuite/parseko/five.stp b/testsuite/parseko/five.stp new file mode 100755 index 00000000..1673a1e6 --- /dev/null +++ b/testsuite/parseko/five.stp @@ -0,0 +1,16 @@ +#! semtest + +probe foo( { +} + +probe bar() { +} + +probe baz.(1) { +} + +probe faz(2), { +} + +probe kaz,goo. { +} diff --git a/testsuite/parseko/six.stp b/testsuite/parseko/six.stp new file mode 100755 index 00000000..2e8c8dbe --- /dev/null +++ b/testsuite/parseko/six.stp @@ -0,0 +1,8 @@ +#! semtest + +probe foo { + a = -9999999999999999999999999; + b = 0xzoopoo; + c = 00011122233344455566677788; + d = 07777777777777777777777777; +} -- cgit