Ignore:
Timestamp:
Mar 29, 2014, 4:39:19 PM (4 years ago)
Author:
ksherdy
Message:

Replaced function keyword with filter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/s2k/trunk/framework/input/test/s2k/proto/grep/grep.s2k

    r3762 r3767  
    2727};
    2828
    29 function ClassifyBytes(struct Basis_bits basis_bits, struct Lex lex) {
     29filter ClassifyBytes(struct Basis_bits basis_bits, struct Lex lex) {
    3030    stream temp1 = (basis_bits.bit_1 & (~ basis_bits.bit_0));
    3131    stream temp2 = (basis_bits.bit_2 & (~ basis_bits.bit_3));
     
    5555}
    5656
    57 function Match(struct Lex lex, struct Output output) {
     57filter Match(struct Lex lex, struct Output output) {
    5858    stream cursor = pablo.Advance(lex.a);
    5959    cursor = pablo.Advance((cursor & lex.p));
     
    6464}
    6565
    66 function MatchLines(struct Lex lex, struct Output output) {
     66filter MatchLines(struct Lex lex, struct Output output) {
    6767    stream all_line_starts = (pablo.ScanToFirst((~ lex.LF)) | (pablo.Advance(lex.LF) & (~ lex.LF)));
    6868    stream all_line_ends = lex.LF;
     
    8484
    8585/*
    86 function Main(struct Basis_bits basis_bits, struct Lex lex, struct Output output) {
     86filter Main(struct Basis_bits basis_bits, struct Lex lex, struct Output output) {
    8787    Transpose(byte_data, basis_bits);
    8888    ClassifyBytes(basis_bits, lex);
Note: See TracChangeset for help on using the changeset viewer.