rascal 0.3.4

A parser and compiler for Flash ActionScript 2 files into SWFs
Documentation
---
source: crates/rascal/src/program.rs
expression: parsed
input_file: samples/as2/tell_target.as
---
Ok:
  initial_script:
    - TellTarget:
        target:
          span:
            start: 11
            end: 12
            file: 0
          value:
            Constant:
              Identifier: x
        body:
          Block:
            - Expr:
                span:
                  start: 17
                  end: 35
                  file: 0
                value:
                  Trace:
                    span:
                      start: 23
                      end: 34
                      file: 0
                    value:
                      Constant:
                        String: this is x
            - TellTarget:
                target:
                  span:
                    start: 50
                    end: 53
                    file: 0
                  value:
                    Constant:
                      String: y
                body:
                  Block:
                    - Expr:
                        span:
                          start: 59
                          end: 77
                          file: 0
                        value:
                          Trace:
                            span:
                              start: 65
                              end: 76
                              file: 0
                            value:
                              Constant:
                                String: this is y
                    - TellTarget:
                        target:
                          span:
                            start: 92
                            end: 95
                            file: 0
                          value:
                            Constant:
                              String: z
                        body:
                          Block:
                            - Expr:
                                span:
                                  start: 102
                                  end: 120
                                  file: 0
                                value:
                                  Trace:
                                    span:
                                      start: 108
                                      end: 119
                                      file: 0
                                    value:
                                      Constant:
                                        String: this is z
                    - Expr:
                        span:
                          start: 128
                          end: 152
                          file: 0
                        value:
                          Trace:
                            span:
                              start: 134
                              end: 151
                              file: 0
                            value:
                              Constant:
                                String: this is still y
            - Expr:
                span:
                  start: 159
                  end: 183
                  file: 0
                value:
                  Trace:
                    span:
                      start: 165
                      end: 182
                      file: 0
                    value:
                      Constant:
                        String: this is x again
    - Expr:
        span:
          start: 187
          end: 208
          file: 0
        value:
          Trace:
            span:
              start: 193
              end: 207
              file: 0
            value:
              Constant:
                String: this is root
    - TellTarget:
        target:
          span:
            start: 221
            end: 222
            file: 0
          value:
            Constant:
              Identifier: x
        body:
          Block: []
    - Expr:
        span:
          start: 225
          end: 252
          file: 0
        value:
          Trace:
            span:
              start: 231
              end: 251
              file: 0
            value:
              Constant:
                String: this is still root
    - TellTarget:
        target:
          span:
            start: 265
            end: 266
            file: 0
          value:
            Constant:
              Identifier: x
        body:
          Expr:
            span:
              start: 268
              end: 286
              file: 0
            value:
              Trace:
                span:
                  start: 274
                  end: 285
                  file: 0
                value:
                  Constant:
                    String: this is x
    - Expr:
        span:
          start: 288
          end: 315
          file: 0
        value:
          Trace:
            span:
              start: 294
              end: 314
              file: 0
            value:
              Constant:
                String: this is still root
  interfaces: []
  classes: []
  custom_pcodes: []
  compile_options:
    swf_version: 15
    optimizations:
      fold_constants: true
      promote_variables_to_registers: true