mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
pattern matching for "x"*
This commit is contained in:
@@ -21,3 +21,5 @@ cc <case "abc def ghi" of {"ab"+x => x; _ => "?"} : Str>
|
||||
cc <case "abc def ghi" of {x+"hi" => x; _ => "?"} : Str>
|
||||
cc <case "abcdefghi" of {""+x => x; _ => "?"} : Str>
|
||||
cc <case "abcdefghi" of {x+"" => x; _ => "?"} : Str>
|
||||
cc <case "aaaaxy" of {"a"* + x => x; _ => "?"} : Str>
|
||||
cc <case "xybbbbb" of {x + "b"* => x; _ => "?"} : Str>
|
||||
|
||||
@@ -20,3 +20,5 @@ param_table.Q2
|
||||
"abc" ++ "def" ++ "g"
|
||||
"abcdefghi"
|
||||
"abcdefghi"
|
||||
"aaaaxy"
|
||||
"xy"
|
||||
|
||||
Reference in New Issue
Block a user