traduction des automates v2 mais cassé

This commit is contained in:
sofamaniac
2023-01-05 16:02:58 +01:00
parent b168161b4f
commit fef64987de
3 changed files with 129 additions and 114 deletions

View File

@@ -33,6 +33,9 @@ let expression_pass f: t_nodelist -> t_nodelist option =
exception PassExn of string
let counter = ref 0
let create_automaton_name : unit -> string = fun () ->
let create_automaton_id : unit -> int = fun () ->
counter := !counter + 1;
Format.asprintf "_s%d" (!counter)
!counter
let create_automaton_name id =
Format.asprintf "_s%d" (id)