rascal 0.3.3

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
            file: 0
          value: x
        value:
          span:
            start: 8
            end: 54
            file: 0
          value:
            BinaryOperator:
              - LogicalAnd
              - span:
                  start: 8
                  end: 32
                  file: 0
                value:
                  BinaryOperator:
                    - InstanceOf
                    - span:
                        start: 8
                        end: 17
                        file: 0
                      value:
                        Constant:
                          Identifier: toCompare
                    - span:
                        start: 29
                        end: 32
                        file: 0
                      value:
                        Constant:
                          Identifier: Foo
              - span:
                  start: 45
                  end: 54
                  file: 0
                value:
                  BinaryOperator:
                    - Equal
                    - span:
                        start: 45
                        end: 47
                        file: 0
                      value:
                        Field:
                          - span:
                              start: 36
                              end: 45
                              file: 0
                            value:
                              Constant:
                                Identifier: toCompare
                          - span:
                              start: 46
                              end: 47
                              file: 0
                            value:
                              Constant:
                                String: x
                    - span:
                        start: 51
                        end: 54
                        file: 0
                      value:
                        Constant:
                          Integer: 123
        type_name: ~
  interfaces: []
  classes: []
  custom_pcodes: []
  compile_options:
    swf_version: 15
    optimizations:
      fold_constants: true
      promote_variables_to_registers: true