Ignore:
Timestamp:
Apr 3, 2014, 7:36:49 PM (5 years ago)
Author:
ksherdy
Message:

Added graph to b2k. Updated grammars. Added S2K to B2K support.

File:
1 edited

Legend:

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

    r3770 r3782  
    1 struct BasisBits {
    2         stream<1> b1;
    3         stream<1> b2;
    4         stream<1> b3;
    5         stream<1> b4;
    6 };
    7 struct BasisBits {
    8         stream<1> b1;
    9         stream<1> b2;
    10         stream<1> b3;
    11         stream<1> b4;
    12 };
    13 
    14 filter Foo() {
    15 
    16 }filter AssignmentExpressions() {       
     1filter AssignmentExpressions() {       
    172        temp4 = temp;
    183        temp4 &= temp1 | temp2;
     
    163148}
    164149
    165 
     150/*
    166151struct Basis_bits{
    167152    stream bit_0;
     
    174159    stream bit_7;
    175160};
     161*/
    176162
    177163struct Lex{
     
    246232}
    247233
    248 /*
    249 filter Main(struct Basis_bits basis_bits, struct Lex lex, struct Output output) {
    250     Transpose(byte_data, basis_bits);
    251     ClassifyBytes(basis_bits, lex);
    252     Match(lex, output);
    253     MatchLines(lex, output);
    254 }
    255 */
     234
     235graph Main() {
     236
     237    struct Byte_data byte_data;
     238    struct Basis_bits basis_bits;
     239    struct Lex lex;
     240    struct Output output;
     241    struct MatchLines matchLines;
     242   
     243    filter Transpose transpose;
     244    filter ClassifyBytes classifyBytes;
     245    filter Match match;
     246    filter MatchLines matchLines;
     247
     248    transpose(byte_data, basis_bits);
     249    classifyBytes(basis_bits, lex);
     250    match(lex, output);
     251    matchLines(lex, output);
     252   
     253}
     254
    256255
    257256struct Basis_bits{
     
    728727    check_streams.name_follows = (tag_Callouts.ElemName_ends | tag_Callouts.AttName_ends);
    729728    check_streams.att_refs = (tag_Callouts.AttVal_spans & marker.Ref_opener);
    730 }struct bb {
    731         stream<1> a;
    732 
    733 };
    734 
    735 /*
    736 filter name(stream<1> a, stream<1> b, stream<1> c) {
    737 
    738 
    739 };
    740 */
    741 struct B
    742 {
    743         stream<1> a;
    744         stream<1> a;
    745         stream<1> a;
    746         stream<1> a;
    747 };
    748 
    749 filter Foo() { }
    750 filter ClassifyBytes(struct BasisBit basis) {};
    751 
     729}
    752730
    753731struct Basis{
     
    861839    return pablo.PopCount((pablo.MatchStar(lines, (~ lex.LF)) & lex.LF)) ;
    862840}
     841struct BasisBits {
     842        stream<1> b1;
     843        stream<1> b2;
     844        stream<1> b3;
     845        stream<1> b4;
     846};
     847
     848filter Foo() {
     849
     850}struct BasisBits {
     851        stream<1> b1;
     852        stream<1> b2;
     853        stream<1> b3;
     854        stream<1> b4;
     855};
     856filter ClassifyBytes(struct BasisBit basis) {};
     857struct B
     858{
     859        stream<1> a;
     860        stream<1> a;
     861        stream<1> a;
     862        stream<1> a;
     863};
     864
     865filter Foo() { }
     866struct bb {
     867        stream<1> a;
     868
     869};
     870
     871/*
     872filter name(stream<1> a, stream<1> b, stream<1> c) {
     873
     874
     875};
     876*/
    863877/*
    864878        Block comment.
Note: See TracChangeset for help on using the changeset viewer.