true-grue/raddsl
View on GitHub ↗ ★ 91 Python
Tools for rapid prototyping of DSL compilers
3 mentions on Hacker News by 2 people: 1 story, 2 comments · first 2018-10-06 · latest 2018-12-17
20082026
-
…to(lambda v: Int(v.X * v.Y))), rule(BinOp("/", Int(X), Int(Y)), to(lambda v: Int(v.X // v.Y))) ) ( https://github.com/true-grue/raddsl/blob/master/examples/cal... ) This way of sharing variable names between the pattern and the associated…
comment by tom_mellior · 2018-12-17 · in Pampy: Pattern Matching for Python -
…has an experience with Prolog, Stratego or Refal. And here is a toy term rewriting system [2]. [1] https://github.com/true-grue/raddsl [2] https://github.com/true-grue/code-snippets/blob/master/ttrs....
comment by richard_shelton · 2018-12-17 · in Pampy: Pattern Matching for Python -
▲ 1
Tools for rapid prototyping of DSL compilers (in Python)story by richard_shelton · 2018-10-06 · 0 comments