Changeset 2045 for to-imperative/trunk/library/Debug/Debug.cc
- Timestamp:
- Aug 1, 2006, 9:34:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
to-imperative/trunk/library/Debug/Debug.cc
r2036 r2045 5 5 #include <refal/Convert.hh> 6 6 #include <refal/Box.hh> 7 #include <refal/RF_Stack.hh> 7 8 #include <refal/Static.hh> 8 9 #include <refal/Table.hh> 9 10 #include <refal/StdIO.hh> 10 #include <refal/ RF_Stack.hh>11 #include <refal/List.hh> 11 12 12 13 namespace refal … … 669 670 Expr _ve_name (_v_deref__lsplit__nv2, 0, _v_len__name2); 670 671 Expr _ve_value (_v_deref__deref__lsplit__nv2, 0, _v_len__value2); 671 RF_CALL (StdIO::Print, _c_14, /*void*/); 672 RF_CALL (StdIO::Write, _ve_name, /*void*/); 673 RF_CALL (StdIO::Print, _c_15, /*void*/); 672 RF_CALL (StdIO::Print, (_c_15 + _ve_name + _c_14), /*void*/); 674 673 RF_CALL (StdIO::WriteLN, _ve_value, /*void*/); 675 674 goto _continue2; … … 796 795 goto _block1__branch2; 797 796 } 798 RF_ lsplit (_ve_arg, 0, _ve_fname, _v_lsplit__arg);799 for ( ; ; RF_iter(_ve_arg) ++)797 RF_rsplit (_ve_arg, 0, _v_rsplit__arg, _ve_column); 798 for ( ; ; RF_iter(_ve_arg)--) 800 799 { 801 800 { … … 804 803 goto _block1__branch2; 805 804 } 806 if ((_v_ lsplit__arg.get_len () < 2))805 if ((_v_rsplit__arg.get_len () < 2)) 807 806 { 808 807 goto _block1__branch2; 809 808 } 810 if (!_c_17.term_eq (_v_ lsplit__arg, 0))809 if (!_c_17.term_eq (_v_rsplit__arg, (_v_rsplit__arg.get_len () - 1))) 811 810 { 812 811 goto _continue1; 813 812 } 814 Expr _v_subexpr__ lsplit__arg (_v_lsplit__arg, 1, (_v_lsplit__arg.get_len () - 1));815 RF_ lsplit (_v_subexpr__lsplit__arg, 0, _ve_line, _v_lsplit__lsplit__arg);816 for ( ; ; RF_iter(_v_subexpr__ lsplit__arg)++)813 Expr _v_subexpr__rsplit__arg (_v_rsplit__arg, 0, (_v_rsplit__arg.get_len () - 1)); 814 RF_rsplit (_v_subexpr__rsplit__arg, 0, _v_rsplit__rsplit__arg, _ve_line); 815 for ( ; ; RF_iter(_v_subexpr__rsplit__arg)--) 817 816 { 818 817 { 819 if (!RF_iter(_v_subexpr__ lsplit__arg))820 { 821 goto _continue1; 822 } 823 uintptr_t _v_len1 = _v_ lsplit__lsplit__arg.get_len ();818 if (!RF_iter(_v_subexpr__rsplit__arg)) 819 { 820 goto _continue1; 821 } 822 uintptr_t _v_len1 = _v_rsplit__rsplit__arg.get_len (); 824 823 uintptr_t _v_len2 = 1; 825 824 if ((_v_len1 < _v_len2)) … … 827 826 goto _continue1; 828 827 } 829 uintptr_t _v_len__ column= (_v_len1 - _v_len2);830 if (!_c_17.term_eq (_v_ lsplit__lsplit__arg, 0))828 uintptr_t _v_len__fname = (_v_len1 - _v_len2); 829 if (!_c_17.term_eq (_v_rsplit__rsplit__arg, _v_len__fname)) 831 830 { 832 831 goto _continue2; 833 832 } 834 Expr _ve_ column (_v_lsplit__lsplit__arg, 1, _v_len__column);833 Expr _ve_fname (_v_rsplit__rsplit__arg, 0, _v_len__fname); 835 834 Expr _v_To_m_Int1; 836 835 if (!RF_CALL (Convert::To_m_Int, _ve_line, _v_To_m_Int1)) … … 861 860 uintptr_t _v_len___e__e_tmp_m_Debugrf_m_110_m_6 = (_v_len3 - _v_len4); 862 861 Expr _ve__e__e_tmp_m_Debugrf_m_110_m_6 (_ve_arg, 0, _v_len___e__e_tmp_m_Debugrf_m_110_m_6); 863 RF_CALL (StdIO::Print LN, _c_18, /*void*/);862 RF_CALL (StdIO::Print, _c_18, /*void*/); 864 863 Expr _v_Domain1; 865 864 RF_CALL (Table::Domain, Breakpoints, _v_Domain1); … … 909 908 Expr _v_Domain1; 910 909 RF_CALL (Table::Domain, Break_m_Funcs, _v_Domain1); 911 RF_CALL (StdIO::WriteLN, _v_Domain1, /*void*/); 910 Expr _v_Concat1; 911 RF_CALL (List::Concat, _v_Domain1, _v_Concat1); 912 RF_CALL (StdIO::WriteLN, _v_Concat1, /*void*/); 912 913 } 913 914 _block1: {} … … 954 955 Expr _v_Domain1; 955 956 RF_CALL (Table::Domain, Break_m_Funcs, _v_Domain1); 956 RF_CALL (StdIO::WriteLN, _v_Domain1, /*void*/); 957 Expr _v_Concat1; 958 RF_CALL (List::Concat, _v_Domain1, _v_Concat1); 959 RF_CALL (StdIO::WriteLN, _v_Concat1, /*void*/); 957 960 } 958 961 _block1: {} … … 965 968 RF_CALL (Table::Bind, (Ops, _c_27, _c_28), /*void*/); 966 969 RF_CALL (Table::Bind, (Ops, _c_29, _c_30), /*void*/); 967 RF_CALL (Table::Bind, (Ops, _c_1 4, _c_31), /*void*/);970 RF_CALL (Table::Bind, (Ops, _c_15, _c_31), /*void*/); 968 971 RF_CALL (Table::Bind, (Ops, _c_32, _c_33), /*void*/); 969 972 RF_CALL (Table::Bind, (Ops, _c_34, _c_35), /*void*/); … … 1317 1320 _c_12 = Expr::create<Word>("[var-name | /*empty*/] prints value of `var-name` | all variables"); 1318 1321 _c_13 = Expr::create<Word>("No variable with name "); 1319 _c_14 = Char::create_expr (L" .");1320 _c_15 = Char::create_expr (L" :");1322 _c_14 = Char::create_expr (L" : "); 1323 _c_15 = Char::create_expr (L"."); 1321 1324 _c_16 = Expr::create<Word>("[file-name line column] sets breakpoint at specified position"); 1322 _c_17 = Expr (_c_1 5, 0, 1);1325 _c_17 = Expr (_c_14, 0, 1); 1323 1326 _c_18 = Expr::create<Word>("Breakpoints: "); 1324 1327 _c_19 = Expr::create<Word>("[file-name line column] removes breakpoint from specified position");
Note: See TracChangeset
for help on using the changeset viewer.