Changeset d5006b1 for tests


Ignore:
Timestamp:
Mar 2, 2021, 2:00:13 PM (8 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
f815c46
Parents:
2cd784a (diff), 1bb1ceb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
tests
Files:
14 added
1 deleted
2 edited
14 moved

Legend:

Unmodified
Added
Removed
  • tests/.expect/io1.oast.txt

    r2cd784a rd5006b1  
    1 9 6 28 0 7 1 2
    2 0 1 2 3
    3 0123
    4 0123
    5 
    61opening delimiters
    72x (1 x [2 x {3 x =4 x $5 x £6 x ¥7 x ¡8 x ¿9 x «10
    83
    94closing delimiters
    10 1, x 2. x 3; x 4! x 5? x 6% x 7 ¢ x 8 » x 9) x 10] x 11} x
     51, x 2. x 3; x 4! x 5? x 6% x 7¢ x 8» x 9) x 10] x 11} x
    116
    127opening/closing delimiters
     
    2419x ( 1 ) x 2 , x 3 :x: 4
    2520
     21spacing
     220 1 2 3
     230123
     240123
     25
     26expressions
     279 6 28 0 7 1 2
  • tests/Makefile.am

    r2cd784a rd5006b1  
    1111## Created On       : Sun May 31 09:08:15 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Fri Oct  9 23:13:07 2020
    14 ## Update Count     : 86
     13## Last Modified On : Sun Feb 21 19:04:09 2021
     14## Update Count     : 88
    1515###############################################################################
    1616
     
    170170
    171171SYNTAX_ONLY_CODE = expression typedefRedef variableDeclarator switch numericConstants identFuncDeclarator forall \
    172         init1 limits nested-types stdincludes cast labelledExit array builtins/sync warnings/self-assignment
     172        init1 limits nested-types stdincludes cast labelledExit array quasiKeyword Includes builtins/sync warnings/self-assignment
    173173$(SYNTAX_ONLY_CODE): % : %.cfa $(CFACCBIN)
    174174        $(CFACOMPILE_SYNTAX)
  • tests/io1.cfa

    r2cd784a rd5006b1  
    1010// Created On       : Wed Mar  2 16:56:02 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Mar  4 21:42:47 2019
    13 // Update Count     : 115
     12// Last Modified On : Sun Feb 21 10:07:07 2021
     13// Update Count     : 119
    1414//
    1515
     
    1717
    1818int main() {
    19         int x = 3, y = 5, z = 7;
    20         sout | x * 3 | y + 1 | z << 2 | x == y | (x | y) | (x || y) | (x > z ? 1 : 2);
    21         sout | 0 | 1 | 2 | 3;
    22         sout | '0' | '1' | '2' | '3';
    23         sout | 0 | "" | 1 | "" | 2 | "" | 3;
    24         sout | nl;
     19        sout | nlOff;                                                                           // auto nl off
    2520
    26         sout | nlOff;
    2721        sout | "opening delimiters" | nl;
    2822        sout | "x (" | 1;
     
    6155        sout | nl | nl;
    6256
    63         sout | nlOn;
     57        sout | nlOn;                                                                            // auto nl on
     58
    6459        sout | "override opening/closing delimiters";
    6560        sout | "x ( " | 1 | " ) x" | 2 | " , x" | 3 | " :x: " | 4;
    6661        sout | nl;
     62
     63        sout | "spacing";
     64        sout | 0 | 1 | 2 | 3;
     65        sout | '0' | '1' | '2' | '3';
     66        sout | 0 | "" | 1 | "" | 2 | "" | 3;
     67        sout | nl;
     68
     69        sout | "expressions";
     70        int x = 3, y = 5, z = 7;
     71        sout | x * 3 | y + 1 | z << 2 | x == y | (x | y) | (x || y) | (x > z ? 1 : 2);
    6772}
    6873
Note: See TracChangeset for help on using the changeset viewer.