You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Main.ag:23:18: error: parser expecting symbol ) or @ or (symbol , ...)*
pattern :
help :
action : deleting: symbol : at line 23, column 18 of file "Main.ag"
The text was updated successfully, but these errors were encountered:
It's a bit annoying that : is a reserved keyword, but I guess we can work around it. I now have a working prototype. This now compiles properly for me:
sem Bin
| Leaf loc.((x:xs):xss) = @lhs.xss
lhs.res = Leaf @x
lhs.xss = (@x + 1 : @xs) : @xss
| Bin loc.(xs : xss') = @lhs.xss
l.xss = @xss'
+xss = (@xs :)
lhs.res = Bin @l.res @r.res
I've implemented a level oriented breadth first renumbering algorithm, but I didn't like how I had to write the semantic rules for
Leaf
:I would like to write this instead:
But UUAGC doesn't parse infix constructors yet:
The text was updated successfully, but these errors were encountered: