Sha256: 329fca4c98d9992020e6a4c835adc47326ded88333776d8c128c3c39f38f69e4

Contents?: true

Size: 481 Bytes

Versions: 4

Compression:

Stored size: 481 Bytes

Contents

class Fancy AST {
  class StringInterpolation : Node {
    """
    StringInterpolation nodes need to be parsed after the overall code has been parsed
    as the parser currently isn't re-entrant.
    It works...
    """

    def initialize: @line code: @code
    def parse_code {
      Fancy Parser parse_code: @code file: ("<<StringInterpolation: " ++ (@code inspect) ++ ">>") line: @line
    }
    def bytecode: g {
      parse_code body expressions first bytecode: g
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fancy-0.7.0 lib/compiler/ast/string_interpolation.fy
fancy-0.6.0 lib/compiler/ast/string_interpolation.fy
fancy-0.5.0 lib/compiler/ast/string_interpolation.fy
fancy-0.4.0 lib/compiler/ast/string_interpolation.fy