Ignore:
Timestamp:
Mar 29, 2014, 11:29:23 PM (6 years ago)
Author:
ksherdy
Message:

Added filter to s2k. Minor changes to s2k and b2k grammar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/s2k/trunk/framework/input/grammar/scatter/b2k.scatter

    r3762 r3769  
    22// Tom Shermer, Ken Herdy
    33//
    4 // b2k - Very high-level IR for the expression of block-by-block stream processing.
     4// b2k - Very high-level IR for the expression of block-by-block parallel bit stream processing.
    55//
    66// Modified:    02-12-2012      Original definition.
     
    3333        INIT,
    3434        KERNEL,
     35        IN,
     36        OUT,
     37        INOUT,
    3538        FUNCTION,   
    3639        STRUCT,
     
    9093    // k e r n e l   d e c l a r a t i o n s
    9194    //
    92     kernelDef           ->     KERNEL kernelName LCURLY initDef funcDef (funcDef)* carryDeclare TERMINATOR RCURLY TERMINATOR? ; 
     95    kernelDef           ->  KERNEL kernelName LCURLY initDef funcDef (funcDef)* carryDeclare TERMINATOR RCURLY TERMINATOR? ; 
    9396    kernelName          #-> identifier ;
    9497
     
    104107    // k e r n e l   f u n c t i o n s
    105108    //
    106     funcDef             ->  FUNCTION funcName LROUND parameterList? RROUND basicBlockStmt TERMINATOR? ;
    107     parameterList       ->  parameter (COMMA parameter)* ;
     109    funcDef             ->  FUNCTION funcName LROUND parameterList RROUND basicBlockStmt TERMINATOR? ;
     110    parameterList       ->  (parameter (COMMA parameter)* )?;
    108111    funcName            #-> identifier ;
    109     parameter           ->  type parameterName ;
     112    parameter           ->  (parameterMode)? type parameterName ;
     113    parameterMode               ->  (IN | OUT | INOUT) ;
    110114    parameterName       #-> identifier ;
    111115    basicBlockStmt      #-> blockStmt ;
    112     //optFuncDef          #-> funcDef ;
    113     carryDeclare                #-> expr; // // KH: temp hack to append the CarryDeclare() macro
     116    carryDeclare                #-> expr; // KH: temp hack to append the CarryDeclare() macro
    114117
    115118    //
Note: See TracChangeset for help on using the changeset viewer.