rascal 0.2.5

A parser and compiler for Flash ActionScript 2 files into SWFs
Documentation
---
source: crates/rascal/src/program.rs
expression: parsed
input_file: samples/as2/op_precedence/instanceof.as
---
Ok:
  initial_script:
    - Declare:
        name:
          span:
            start: 4
            end: 5
          value: x
        value:
          span:
            start: 8
            end: 54
          value:
            BinaryOperator:
              - LogicalAnd
              - span:
                  start: 8
                  end: 32
                value:
                  BinaryOperator:
                    - InstanceOf
                    - span:
                        start: 8
                        end: 17
                      value:
                        Constant:
                          Identifier: toCompare
                    - span:
                        start: 29
                        end: 32
                      value:
                        Constant:
                          Identifier: Foo
              - span:
                  start: 45
                  end: 54
                value:
                  BinaryOperator:
                    - Equal
                    - span:
                        start: 45
                        end: 47
                      value:
                        Field:
                          - span:
                              start: 36
                              end: 45
                            value:
                              Constant:
                                Identifier: toCompare
                          - span:
                              start: 46
                              end: 47
                            value:
                              Constant:
                                String: x
                    - span:
                        start: 51
                        end: 54
                      value:
                        Constant:
                          Integer: 123
        type_name: ~
  interfaces: []
  classes: []
  custom_pcodes: []