Changeset 72c6950
- Timestamp:
- Feb 21, 2021, 11:11:00 AM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a9ea758
- Parents:
- d447238
- Location:
- tests
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/io1.oast.txt
rd447238 r72c6950 1 9 6 28 0 7 1 22 0 1 2 33 01234 01235 6 1 opening delimiters 7 2 x (1 x [2 x {3 x =4 x $5 x £6 x ¥7 x ¡8 x ¿9 x «10 8 3 9 4 closing delimiters 10 1, x 2. x 3; x 4! x 5? x 6% x 7 ¢ x 8» x 9) x 10] x 11} x5 1, x 2. x 3; x 4! x 5? x 6% x 7¢ x 8» x 9) x 10] x 11} x 11 6 12 7 opening/closing delimiters … … 24 19 x ( 1 ) x 2 , x 3 :x: 4 25 20 21 spacing 22 0 1 2 3 23 0123 24 0123 25 26 expressions 27 9 6 28 0 7 1 2 -
tests/io1.cfa
rd447238 r72c6950 10 10 // Created On : Wed Mar 2 16:56:02 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Mar 4 21:42:47 201913 // Update Count : 11 512 // Last Modified On : Sun Feb 21 10:07:07 2021 13 // Update Count : 119 14 14 // 15 15 … … 17 17 18 18 int 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 25 20 26 sout | nlOff;27 21 sout | "opening delimiters" | nl; 28 22 sout | "x (" | 1; … … 61 55 sout | nl | nl; 62 56 63 sout | nlOn; 57 sout | nlOn; // auto nl on 58 64 59 sout | "override opening/closing delimiters"; 65 60 sout | "x ( " | 1 | " ) x" | 2 | " , x" | 3 | " :x: " | 4; 66 61 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); 67 72 } 68 73
Note: See TracChangeset
for help on using the changeset viewer.