Added remove rule rule.

This commit is contained in:
Bruce Hill 2017-11-01 19:59:44 -07:00
parent fb3936269f
commit 87b2cce8e5

View File

@ -53,6 +53,13 @@ rule [escaped compile %macro_def to code %body] =:
parse [compile %macro_def to %body] as: escaped compile \%macro_def to \%body
parse [compile %macro_def to code %body] as: escaped compile \%macro_def to code \%body
rule [remove rule %stub] =:
lua> ".."
|local def = nomsu.defs[stub];
|for _, alias in ipairs(def.aliases) do
| nomsu.defs[alias] = nil;
|end
rule [do %] =:
=lua "\(%)(nomsu, vars)"