Sha256: 0522068643c86f56a2f43267a03f752eb55ebe2bd4f1d373ece32caf7fc04679

Contents?: true

Size: 1.52 KB

Versions: 4

Compression:

Stored size: 1.52 KB

Contents

input_line:
  valid:
    - input '*.txt'
    - input "*.txt".as_data_expr
  invalid:
    - input @@@
output_line:
  valid:
    - output '*.txt'
    - output "*.txt".as_data_expr
  invalid:
    - output @@@
param_line:
  valid:
    - "param $abc"
    - "param $Var"
    - "param $Var := 1"
    - "param $NUM := 1.0"
    - "param $STR := \"abc\""
    - "param {Var: 1}"
  invalid:
    - param $
feature_line:
  valid:
    - feature +A
    - feature -A
    - feature ?A
    - feature "A".as_requisite_feature
  invalid:
    - feature +
    - feature -
    - feature ?
rule_header:
  valid:
    - Rule Test
    - Rule test
rule_condition:
  valid:
    - input "*.txt"
    - output "*.txt"
    - param $var
    - feature +A
rule_conditions:
  valid:
    - |
      input "*.a"
      input "*.b"
      output "*.c"
      param $var
      feature +A
    - |
      output "*.a"
      input "*.b"
      feature -A
      param $var
rule_definition:
  valid:
    - |
      Rule test
        input '*.a'
        output '*.b'
      Flow
        rule Test
      End
    - |
      Rule test
        input '*.a'
        output '*.b'
      Action
      echo "a"
      End
    - |
      Rule Test
        input  '*.a'
        output '{$INPUT[1].MATCH[1]}.b'
      Action
      echo "test" > {$OUTPUT[1].NAME}
      End
    - |
      Rule Test
        input '*.a'
        output '{$INPUT[1].MATCH[1]}.b'
      Flow
      rule TestA
      rule TestB.sync
      End
    - |
      Rule Test
        output 'test.txt'
        param $N := 1
      Flow
        rule TestA
      End

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pione-0.1.3 test/parser/spec_rule-definition-parser.yml
pione-0.1.2 test/parser/spec_rule-definition-parser.yml
pione-0.1.1 test/parser/spec_rule-definition-parser.yml
pione-0.1.0 test/parser/spec_rule-definition-parser.yml