mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 08:12:51 -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>
|
||||
|
||||
Reference in New Issue
Block a user