(* ********************************************************************** *)
include "utility/ascii.ma".
-include "utility/utility.ma".
+include "freescale/theory.ma".
+include "freescale/nat.ma".
(* ************************ *)
(* MANIPOLAZIONE DI STRINGA *)
(* tipo pubblico *)
ndefinition aux_str_type ≝ list ascii.
-(* empty string *)
-ndefinition empty_str ≝ nil ascii.
-
-(* is empty ? *)
-ndefinition isNull_str ≝
-λstr:aux_str_type.match str with
- [ nil ⇒ true | cons _ _ ⇒ false ].
-
(* strcmp *)
nlet rec eq_str (str,str':aux_str_type) ≝
match str with
]
].
-(* strcat *)
-ndefinition strCat_str ≝
-λstr,str':aux_str_type.str@str'.
-
-(* strlen *)
-ndefinition strLen_str ≝ len_list ascii.
-
(* ************ *)
(* STRINGA + ID *)
(* ************ *)