The PEAK Developers' Center   Diff for "PEAK-Rules/AST-Builder" UserPreferences
 
HelpContents Search Diffs Info Edit Subscribe XML Print View Up
Differences between version dated 2010-08-10 17:49:33 and 2010-08-10 20:21:38
Deletions are marked like this.
Additions are marked like this.

This document describes the design (and tests the implementation) of the
``ast_builder`` module. You don't need to read it unless you want to use
this module directly in your own programs. If you do want to use it directly,
you should keep in mind that it currently only implements a subset of Python
*expression* syntax: it does not support lambdas, list comprehensions,
generator expressions, yield expressions, or any kind of statements.
you should keep in mind that it currently only implements a **subset** of Python
*expression* syntax: it does not support lambdas, yield expressions, or any
kind of statements.
 
.. contents:: **Table of Contents**
 
 
------------------------

    >>> pe("'xyz'")
    'xyz'
 
Note that Adjacent string constants are automatically merged::
Note that adjacent string constants are automatically merged::
 
    >>> pe("'abc' 'xyz'")
    'abcxyz'

Lists
-----
 
::
 
    >>> pe("[]")
    List()
    >>> pe("[a]")

PythonPowered
ShowText of this page
EditText of this page
FindPage by browsing, title search , text search or an index
Or try one of these actions: AttachFile, DeletePage, LikePages, LocalSiteMap, SpellCheck