Skip to content

Commit

Permalink
pattern matching with PChar
Browse files Browse the repository at this point in the history
  • Loading branch information
krangelov committed Sep 5, 2024
1 parent 6c2a94d commit e722916
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/api/GF/Compile/Compute/Concrete.hs
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ patternMatch v0 ((env0,ps,args0,t):eqs) = match env0 ps eqs args0
patternMatch v0 eqs
RunTime -> return v0
NonExist-> patternMatch v0 eqs
(PChar, VStr [c]) -> match env ps eqs args
(PChars cs, VStr [c])
| elem c cs -> match env ps eqs args
(PInt n, VInt m)
Expand Down

0 comments on commit e722916

Please sign in to comment.