Changeset 656 for proto/Compiler


Ignore:
Timestamp:
Oct 13, 2010, 2:41:49 PM (9 years ago)
Author:
ksherdy
Message:

Pretty print.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/README

    r655 r656  
    2727
    2828                svn add Makefile template.c pybit_driver.py pybit_soln.py pybit_compiler.py src
    29     svn commit -m'Create default PyBit prototype directory structure.'
     29                svn commit -m'Create default PyBit prototype directory structure.'
    3030
    3131        1.4 Rename Files (Optional)
     
    4646
    4747                cd JSON
    48     touch props.txt
    49     echo "lib http://parabix.costar.sfu.ca/svn/trunk/lib" > props.txt
    50     echo "perflib http://parabix.costar.sfu.ca/svn/trunk/lib/perflib" >> props.txt
     48                touch props.txt
     49                echo "lib http://parabix.costar.sfu.ca/svn/trunk/lib" > props.txt
     50                echo "perflib http://parabix.costar.sfu.ca/svn/trunk/lib/perflib" >> props.txt
    5151
    5252        2.2 Set the svn:externals property for the JSON directory.
    5353
    54     svn propset svn:externals . -F props.txt
     54                svn propset svn:externals . -F props.txt
    5555
    5656        2.3 Update the local copy of the the project directory JSON
    5757
    58     svn update
    59     svn commit -m'Commit the propset command.'
     58                svn update
     59                svn commit -m'Commit the propset command.'
    6060
    61612. Modify prototype.py to prototype a Pybit implemenation in Python.
     
    6565        3.1 Variables
    6666
    67         In any compilable program all variables are assumed to be type bit stream, arrays of
    68         bitstreams or structures of bitstreams.
     67                In any compilable program all variables are assumed to be type bit stream, arrays of
     68                bitstreams or structures of bitstreams.
    6969
    7070        3.2 Operations
     
    7272        Valid operations on bit streams include the following.
    7373
    74         Bitwise logical operations
     74        Bitwise logical operations
    7575                And
    7676                Or
     
    8080        Primitives
    8181                Advance(bitstream)
    82                 ScanThru(cursor,span_stream)
     82                ScanThru(cursor,span_stream)
    8383
    8484        Pragmas
     
    9494                Python function calls
    9595
    96     Currently function calls must be of the following form: var = func(params)
    97     params is a list of positional arguments. Keyword arguments are not currently supported.
    98     func is the function name. It must return a single variable bitstream variable.
    99     All the functions will be inlined in the output C code.
    100     Function calls are only allowed within "main" function. No other function call is allowed,
     96                Currently function calls must be of the following form: var = func(params)
     97                params is a list of positional arguments. Keyword arguments are not currently supported.
     98                func is the function name. It must return a single variable bitstream variable.
     99                All the functions will be inlined in the output C code.
     100                Function calls are only allowed within "main" function. No other function call is allowed,
    101101                except calling predefined functions.
    102102   
    103103        Module Importing
    104104                Simple form of module importing.
    105     The following format is accepted currently, but the implementation
    106     is not yet finished: import module_name[,module_name]
     105                The following format is accepted currently, but the implementation
     106                is not yet finished: import module_name[,module_name]
    107107
    108108
    109109        Additional Constraints
    110     There should be one and only one return statement within the main function. This statement variables
    111         values of which is needed in other parts of the output program.
     110                There should be one and only one return statement within the main function. This statement variables
     111                values of which is needed in other parts of the output program.
    112112
    113         A variables with name 'error_mask' is assumed to be used in the output program.
    114         This does not mean that your program must have a variable with this name. If you
    115         have a variable that specifies error locations, it is recommended to be named 'error_mask'.
     113                A variables with name 'error_mask' is assumed to be used in the output program.
     114                This does not mean that your program must have a variable with this name. If you
     115                have a variable that specifies error locations, it is recommended to be named 'error_mask'.
    116116       
    117117        3.3 Executable Compilation
     
    120120                to compile generated code into executable programs.
    121121
    122                
    123122
    124 
Note: See TracChangeset for help on using the changeset viewer.