Commit 5d8c7a6c authored by Jamie A. Jennings's avatar Jamie A. Jennings

CHANGED rpl/rosie/rpl_1_3.rpl to include predicate in base_term, as it was previously

parent 6f1037b1
Pipeline #141121978 passed with stage
in 1 minute and 13 seconds
......@@ -3,7 +3,7 @@
----
---- rpl_1_3.rpl Grammar for RPL itself, written in RPL version 0 (core)
----
---- © Copyright Jamie A. Jennings, 2019.
---- © Copyright Jamie A. Jennings, 2019, 2020.
---- © Copyright IBM Corporation 2016, 2017, 2018.
---- LICENSE: MIT License (https://opensource.org/licenses/mit-license.html)
---- AUTHOR: Jamie A. Jennings
......@@ -135,6 +135,7 @@ grammar
bracket /
hash_exp /
application /
predicate /
{!binding_prefix identifier}}
bracket = { openbracket complement? exp atmos closebracket }
cooked = { open exp atmos close }
......@@ -212,7 +213,7 @@ preparse = atmos language_decl
-- test import_decl accepts "import f_o_o as foo, local/baz as ., bin/time"
-- test import_decl accepts "import f_o_o/bar as foo, \"/usr/local/baz\" as ., \"/usr/bin/time\""
-- test rpl_expression accepts "foo_1:x", "pkg.f:x", "f:\"hello\"", "f:!x", "f:x+", "f:(x y z)", "f:{x y z}"
-- test rpl_expression accepts "foo_1:x", "pkg.f:x", "f:\"hello\"", "f:!x", "f:x+", "f:(x y z)", "f:{!x}", "f:{x y z}"
-- test rpl_expression accepts "f:(x, y)", "foo:{a, b}"
-- test rpl_expression accepts "f:(a, 55)", "foo.bar:(1, 2, 3, a b c, d / e, {f}*)", "f:{a / b, 3}+"
-- test rpl_expression rejects "f:", "pkg.f:"
......@@ -222,5 +223,3 @@ preparse = atmos language_decl
-- test rpl_expression includes form.arg "f:{a / b}+", "f:{(a)}", "f:{[:set:]}"
-- test rpl_expression includes form.rawarglist "f:{5}", "f:{7, x, a / b / c+}", "f:{(a),b}", "f:{[:set:]{1,2},\"hi\"}"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment