mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Changed topname to _main instead of main
This commit is contained in:
parent
87a489e2e3
commit
f4b9aa1eb9
2 changed files with 5 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ class options args =
|
|||
Filename.chop_suffix (Filename.basename self#get_infile) ".lama"
|
||||
|
||||
method topname =
|
||||
match !mode with `Compile -> "init" ^ self#basename | _ -> "main"
|
||||
match !mode with `Compile -> "init" ^ self#basename | _ -> "_main"
|
||||
|
||||
method dump_file ext contents =
|
||||
let name = self#basename in
|
||||
|
|
|
|||
|
|
@ -14,8 +14,10 @@ type scope = {
|
|||
}
|
||||
[@@deriving gt ~options:{ show }]
|
||||
|
||||
let label s = "_L" ^ s
|
||||
let builtin_label s = "_B" ^ s
|
||||
let normal_prefix = "_L"
|
||||
let builtin_prefix = "_B"
|
||||
let label s = normal_prefix ^ s
|
||||
let builtin_label s = builtin_prefix ^ s
|
||||
let scope_label i s = label s ^ "_" ^ string_of_int i
|
||||
let show_scope = show scope
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue