equal
deleted
inserted
replaced
1841 fun eval_term reff = eval CodeThingol.eval_term I reff; |
1841 fun eval_term reff = eval CodeThingol.eval_term I reff; |
1842 |
1842 |
1843 |
1843 |
1844 (* instrumentalization by antiquotation *) |
1844 (* instrumentalization by antiquotation *) |
1845 |
1845 |
1846 val ml_code_antiq = (Scan.state >> Context.theory_of) -- Scan.repeat1 Args.term >> (fn (thy, ts) => |
1846 val ml_code_antiq = Args.theory -- Scan.repeat1 Args.term >> (fn (thy, ts) => |
1847 let |
1847 let |
1848 val cs = map (CodeUnit.check_const thy) ts; |
1848 val cs = map (CodeUnit.check_const thy) ts; |
1849 val (cs', program) = CodeThingol.consts_program thy cs; |
1849 val (cs', program) = CodeThingol.consts_program thy cs; |
1850 in sml_code_of thy program cs' ^ " ()" end); |
1850 in sml_code_of thy program cs' ^ " ()" end); |
1851 |
1851 |