mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-26 13:02:50 -06:00
implemented pattern macros
This commit is contained in:
@@ -23,3 +23,6 @@ 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>
|
||||
cc <case "xyababbbab" of {x + #ab_patt* => x; _ => "?"} : Str>
|
||||
cc test "abcd"
|
||||
cc test "xyz"
|
||||
|
||||
Reference in New Issue
Block a user