patterns

Search:
Group by:
Source   Edit  

This module implements the pattern matching features for term rewriting macro support.

Procs

proc applyRule(c: PContext; s: PSym; n: PNode): PNode {....raises: [Exception,
    OSError, KeyError, ValueError, IOError, ERecoverableError], tags: [
    RootEffect, WriteIOEffect, ReadEnvEffect, ReadIOEffect, ReadDirEffect],
    forbids: [].}
returns a tree to semcheck if the rule triggered; nil otherwise Source   Edit  
proc sameTrees(a, b: PNode): bool {....raises: [Exception, OSError, KeyError,
    ValueError, IOError], tags: [RootEffect, WriteIOEffect, ReadEnvEffect,
                                 ReadIOEffect, ReadDirEffect], forbids: [].}
Source   Edit