# patterns

Theme:

- Index

Search:
Group by:
Source Edit

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

# Imports

ast, types, semdata, sigmatch, idents, aliases, parampatterns, trees

# Procs

    proc applyRule(c: PContext; s: PSym; n: PNode): PNode {....raises: [Exception,
        KeyError, ValueError, ERecoverableError, OSError, IOError], tags: [
        RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect],
        forbids: [].}

  returns a tree to semcheck if the rule triggered; nil otherwise Source Edit

    proc sameTrees(a, b: PNode): bool {....raises: [Exception], tags: [RootEffect],
                                        forbids: [].}

  Source Edit