summary refs log tree commit diff stats
path: root/tinyc/tccrun.c
Commit message (Expand)AuthorAgeFilesLines
* TinyC upgrade (#6593)Dmitry Atamanov2017-10-281-0/+840
href='#n10'>10 11 12 13 14 15 16 17 18
type
  TMatcherKind = enum
    mkTerminal, mkSequence, mkAlternation, mkRepeat
  TMatcher[T] = object
    case kind: TMatcherKind
    of mkTerminal:
      value: T
    of mkSequence, mkAlternation:
      matchers: seq[TMatcher[T]]
    of mkRepeat:
      matcher: ref TMatcher[T]
      min, max: int

var 
  m: ref TMatcher[int]