Sha256: 34483153c4d4ce8bb51c6d93af1445537977bf0a2891e1313f4bb0fa194c9cdf

Contents?: true

Size: 953 Bytes

Versions: 3

Compression:

Stored size: 953 Bytes

Contents

rules:
  predicate:
    - tautology
    - contradiction
    - identifier
    - not
    - and
    - or
    - eq
    - neq
    - lt
    - lte
    - gt
    - gte
    - in
    - intersect
    - match
    - native
  tautology:
    - [ true ]
  contradiction:
    - [ false ]
  identifier:
    - [ name ]
  qualified_identifier:
    - [ name, name ]
  not:
    - [ predicate ]
  and:
    - [ predicate+ ]
  or:
    - [ predicate+ ]
  eq:
    - [ term, term ]
  neq:
    - [ term, term ]
  lt:
    - [ term, term ]
  lte:
    - [ term, term ]
  gt:
    - [ term, term ]
  gte:
    - [ term, term ]
  in:
    - [ varref, term ]
  intersect:
    - [ term, term ]
  match:
    - [ term, term, options ]
  term:
    - varref
    - literal
    - opaque
  varref:
    - qualified_identifier
    - identifier
  native:
    - [ "::Proc" ]
  literal:
    - "::Object"
  opaque:
    - "::Object"
  options:
    - "::Hash"
  name:
    !ruby/regexp /^[a-zA-Z0-9_]+[?!]?$/

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
predicate-2.2.1 lib/predicate/grammar.sexp.yml
predicate-2.2.0 lib/predicate/grammar.sexp.yml
predicate-2.1.0 lib/predicate/grammar.sexp.yml