Sha256: 74283c4610377ff2a4142865c8c0bcf1ba70158f761da0547b8c7bc7853a04ca

Contents?: true

Size: 946 Bytes

Versions: 2

Compression:

Stored size: 946 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, values ]
  intersect:
    - [ varref, values ]
  match:
    - [ term, term, options ]
  term:
    - varref
    - literal
  varref:
    - qualified_identifier
    - identifier
  native:
    - [ "::Proc" ]
  literal:
    - "::Object"
  values:
    - "::Object"
  options:
    - "::Hash"
  name:
    !ruby/regexp /^[a-zA-Z0-9_]+[?!]?$/

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
predicate-2.0.1 lib/predicate/grammar.sexp.yml
predicate-2.0.0 lib/predicate/grammar.sexp.yml