Changeset 1932 for to-imperative/trunk/trefal
- Timestamp:
- Apr 20, 2006, 4:41:35 PM (15 years ago)
- Location:
- to-imperative/trunk/trefal/samples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
to-imperative/trunk/trefal/samples/fib.tpp
r1906 r1932 1 1 #include <rf_core.hh> 2 2 #include <refal/Arithm.hh> 3 #include <refal/StdIO.hh> 3 4 #include <refal/Compare.hh> 4 #include <refal/StdIO.hh>5 5 6 6 namespace refal … … 14 14 tfun int Fib; 15 15 16 tfun int Main; 17 16 18 static tval Expr _c_0; 17 19 … … 22 24 static tval Expr _c_3; 23 25 24 int Fib( tval Expr_v_arg1,tout Expr_v_res1){26 tfun int Fib( tval Expr_v_arg1,tout Expr_v_res1){ 25 27 { 26 28 { … … 72 74 } 73 75 74 int Main( tout Expr_v_res1){76 tfun int Main( tout Expr_v_res1){ 75 77 tval Expr _v_Fib1; 76 78 Fib( _c_3, _v_Fib1); -
to-imperative/trunk/trefal/samples/read.tpp
r1906 r1932 10 10 { 11 11 12 int Main( tout Expr_v_res1){ 12 tfun int Main; 13 14 tfun int Main( tout Expr_v_res1){ 13 15 tval Expr _v_Read1; 14 16 if (!StdIO::Read(/*void*/, _v_Read1))
Note: See TracChangeset
for help on using the changeset viewer.