Sha256: 3adcc34794c304c6d2eb340ca4fa908e5c6f2385c70500ec99007a4dc4db1156

Contents?: true

Size: 1019 Bytes

Versions: 5

Compression:

Stored size: 1019 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
    - placeholder
    - opaque
  varref:
    - qualified_identifier
    - identifier
  native:
    - [ "::Proc" ]
  literal:
    - "::Object"
  placeholder:
    - "::Predicate::Placeholder"
  opaque:
    - "::Object"
  options:
    - "::Hash"
  name:
    !ruby/regexp /^[a-zA-Z0-9_]+[?!]?$/

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
predicate-2.4.0 lib/predicate/grammar.sexp.yml
predicate-2.3.3 lib/predicate/grammar.sexp.yml
predicate-2.3.2 lib/predicate/grammar.sexp.yml
predicate-2.3.1 lib/predicate/grammar.sexp.yml
predicate-2.3.0 lib/predicate/grammar.sexp.yml