From 187d82582478e13f29adcd2094fbe2e632621337 Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Sun, 15 Dec 2019 19:11:33 +0100 Subject: [PATCH] [ #256 #276 ] test case --- testing/regression-tests/256_Regex/good01.in | 1 + testing/regression-tests/256_Regex/good01.out | 10 ++++++++++ testing/regression-tests/256_Regex/test.cf | 8 ++++++++ 3 files changed, 19 insertions(+) create mode 100644 testing/regression-tests/256_Regex/good01.in create mode 100644 testing/regression-tests/256_Regex/good01.out create mode 100644 testing/regression-tests/256_Regex/test.cf diff --git a/testing/regression-tests/256_Regex/good01.in b/testing/regression-tests/256_Regex/good01.in new file mode 100644 index 00000000..bec6f94c --- /dev/null +++ b/testing/regression-tests/256_Regex/good01.in @@ -0,0 +1 @@ +[x:4] /\ 'funky+identifier-umlaute:äöüß//\%#FOO \ No newline at end of file diff --git a/testing/regression-tests/256_Regex/good01.out b/testing/regression-tests/256_Regex/good01.out new file mode 100644 index 00000000..40a25313 --- /dev/null +++ b/testing/regression-tests/256_Regex/good01.out @@ -0,0 +1,10 @@ + +Parse Successful! + +[Abstract Syntax] + +Start (Name "[x:4]") (Name "'funky+identifier-umlaute:\228\246\252\223//\\%#FOO") + +[Linearized tree] + +[x:4] /\ 'funky+identifier-umlaute:äöüß//\%#FOO diff --git a/testing/regression-tests/256_Regex/test.cf b/testing/regression-tests/256_Regex/test.cf new file mode 100644 index 00000000..f2d3c3fe --- /dev/null +++ b/testing/regression-tests/256_Regex/test.cf @@ -0,0 +1,8 @@ +-- Issue #110: backslash in keyword + +Start. S ::= Name "/\\" Name; + +-- Issue #256: iterated difference +-- Issue #276: whitespace characters in character class + +token Name (char - [ "(){};.@\"" ] - [ " \n\t" ]) + ;