jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Boo
  • Boo
  • BOO-451

ast literals

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Rodrigo B. de Oliveira
    Reporter:
    Rodrigo B. de Oliveira
Vote (0)
Watch (0)

Dates

  • Created:
    19/Aug/05 3:56 PM
    Updated:
    09/Nov/06 12:12 PM
    Resolved:
    19/Aug/05 4:02 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.