Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6
    • Component/s: Compiler, Parser
    • Labels:
      None
    • Number of attachments :
      0

      Description

      A better way to construct ast nodes than using constructor calls.

      Instead of saying:

      mie = MethodInvocationExpression(ReferenceExpression('print'), StringLiteralExpression('Hello, world'))

      ast literals allow you to say:

      mie = ast

      { print('Hello, world') }

      or:
      mie = ast:
      print('Hello, world')

      In other words, you can construct ast objects directly from boo code.

      Expression, statements, blocks and type members are supported.

      A next step would be ast interpolation.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Rodrigo B. de Oliveira
            Reporter:
            Rodrigo B. de Oliveira
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: