compiler/vm/identpatterns

  Source   Edit

Implements routines for matching qualified identifier patterns against symbols.

Types

IdentPattern = distinct string
A matcher pattern for a fully qualified symbol identifier   Source   Edit
Patterns = seq[IdentPattern]
A list of identifier matcher patterns, where the order is significant.   Source   Edit

Procs

func lookup(patterns: Patterns; s: PSym): int {....raises: [], tags: [].}
Tries to find and return the index of the pattern matching s. If none is found, -1 is returned   Source   Edit