Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DSL pour Robotique en essaim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kylian Fontaine
DSL pour Robotique en essaim
Commits
8094637d
Commit
8094637d
authored
Jul 23, 2024
by
Kylian Fontaine
Browse files
Options
Downloads
Patches
Plain Diff
fix: location est par defaut en activelyup
parent
f9910891
Branches
Branches containing commit
No related tags found
1 merge request
!1
Module
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/main.ml
+8
-6
8 additions, 6 deletions
bin/main.ml
lib/gencoq.ml
+4
-4
4 additions, 4 deletions
lib/gencoq.ml
with
12 additions
and
10 deletions
bin/main.ml
+
8
−
6
View file @
8094637d
...
@@ -29,11 +29,13 @@ let rec parse_args args (proof_name : string) (type_name : string) (overwrite: b
...
@@ -29,11 +29,13 @@ let rec parse_args args (proof_name : string) (type_name : string) (overwrite: b
@param args: string array, array of command line arguments
@param args: string array, array of command line arguments
*)
*)
let
gen
(
args
:
string
array
)
=
let
gen
(
args
:
string
array
)
=
if
Array
.
length
args
<
2
then
(
print_endline
usage
;
exit
0
)
else
let
list_args
=
Array
.
to_list
args
in
let
list_args
=
Array
.
to_list
args
in
try
let
name
=
args
.
(
1
)
in
let
name
=
args
.
(
1
)
in
let
(
proof_name
,
type_name
,
overwrite
,
repo_gen
,
graph_gen
)
=
parse_args
list_args
((
Filename
.
basename
name
)
^
"_proof"
)
((
Filename
.
basename
name
)
^
"_world_type"
)
true
"./generate"
false
in
let
(
proof_name
,
type_name
,
overwrite
,
repo_gen
,
graph_gen
)
=
parse_args
list_args
((
Filename
.
basename
name
)
^
"_proof"
)
((
Filename
.
basename
name
)
^
"_world_type"
)
true
"./generate"
false
in
Gencoq
.
generate_coq_2files
(
Interface
.
parse_description
name
)
(
Filename
.
basename
name
)
proof_name
type_name
overwrite
repo_gen
graph_gen
Gencoq
.
generate_coq_2files
(
Interface
.
parse_description
name
)
(
Filename
.
basename
name
)
proof_name
type_name
overwrite
repo_gen
graph_gen
with
_
->
print_endline
usage
;
exit
0
;;
;;
gen
Sys
.
argv
;;
gen
Sys
.
argv
;;
This diff is collapsed.
Click to expand it.
lib/gencoq.ml
+
4
−
4
View file @
8094637d
...
@@ -28,13 +28,13 @@ let get_val_ret (infos : information list) : string list =
...
@@ -28,13 +28,13 @@ let get_val_ret (infos : information list) : string list =
|
Location
::
tl
->
"location"
::
(
locdir
tl
)
|
Location
::
tl
->
"location"
::
(
locdir
tl
)
|
Direction
::
tl
->
"direction"
::
(
locdir
tl
)
|
Direction
::
tl
->
"direction"
::
(
locdir
tl
)
|
Str
x
::
tl
->
if
x
=
"Light"
then
"light"
::
(
locdir
tl
)
else
(
locdir
tl
)
|
Str
x
::
tl
->
if
x
=
"Light"
then
"light"
::
(
locdir
tl
)
else
(
locdir
tl
)
|
[]
->
[]
|
[]
->
[
"location"
]
in
in
let
valret
=
List
.
find
_opt
(
fun
x
->
match
x
with
|
ActivelyUpdate
_
->
true
|
_
->
false
)
infos
let
valret
=
List
.
find
(
fun
x
->
match
x
with
|
ActivelyUpdate
_
->
true
|
_
->
false
)
infos
in
in
match
valret
with
match
valret
with
|
Some
(
ActivelyUpdate
x
)
->
locdir
x
|
ActivelyUpdate
x
->
locdir
x
|
_
->
[
"location"
]
|
_
->
[]
(**[get_space infos] returns the string corresponding to the space
(**[get_space infos] returns the string corresponding to the space
@param information list corresponding to the description of the world
@param information list corresponding to the description of the world
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment