equal
deleted
inserted
replaced
440 end |
440 end |
441 |
441 |
442 (* define syntax for case combinator *) |
442 (* define syntax for case combinator *) |
443 (* TODO: re-implement case syntax using a parse translation *) |
443 (* TODO: re-implement case syntax using a parse translation *) |
444 local |
444 local |
445 fun syntax c = Syntax.mark_const (fst (dest_Const c)) |
445 fun syntax c = Lexicon.mark_const (fst (dest_Const c)) |
446 fun xconst c = Long_Name.base_name (fst (dest_Const c)) |
446 fun xconst c = Long_Name.base_name (fst (dest_Const c)) |
447 fun c_ast authentic con = Ast.Constant (if authentic then syntax con else xconst con) |
447 fun c_ast authentic con = Ast.Constant (if authentic then syntax con else xconst con) |
448 fun showint n = string_of_int (n+1) |
448 fun showint n = string_of_int (n+1) |
449 fun expvar n = Ast.Variable ("e" ^ showint n) |
449 fun expvar n = Ast.Variable ("e" ^ showint n) |
450 fun argvar n (m, _) = Ast.Variable ("a" ^ showint n ^ "_" ^ showint m) |
450 fun argvar n (m, _) = Ast.Variable ("a" ^ showint n ^ "_" ^ showint m) |