January 2020
Intermediate to advanced
532 pages
13h 31m
English
We can use the same trick to extract useful information from the axiom and rule statements. Let's do a quick experiment for the axiom statement, which consists of the word axiom, a colon, and a symbol. Matching it with the @capture macro is pretty slick as follows:

Matching a rule statement is just as easy. The only difference is that we want to match the original symbol and the corresponding replacement symbol, as shown here:

Once matched, the original and replacement variables are assigned with the corresponding ...
Read now
Unlock full access