Skip to content

Commit

Permalink
Add SingleTaskDecl, TaskTypeDecl and EntryDecl confs
Browse files Browse the repository at this point in the history
  • Loading branch information
CKMonika authored and joaopsazevedo committed Apr 4, 2024
1 parent e019dff commit 2203ecf
Show file tree
Hide file tree
Showing 35 changed files with 4,637 additions and 76 deletions.
460 changes: 460 additions & 0 deletions extensions/default_unparsing_config.json

Large diffs are not rendered by default.

325 changes: 325 additions & 0 deletions testsuite/tests/unparsing/entry_decl/entries_family/doc-baseline.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
entry Request(Level)(D : Item);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
entry Request (Level) (D : Item);
6 changes: 6 additions & 0 deletions testsuite/tests/unparsing/entry_decl/entries_family/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: |
This test checks the formatting of a family of entries declaration.
It is expected the declaration stays on a single line.
driver: unparser
rule: entry_decl
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"id": 10,
"kind": "command",
"command": {
"command": "group",
"id": 0,
"groupContents": {
"id": 9,
"kind": "list",
"list": [
{
"id": 7,
"kind": "command",
"command": {
"command": "group",
"id": 0,
"groupContents": {
"id": 6,
"kind": "list",
"list": [
{
"id": 5,
"kind": "command",
"command": {
"command": "align",
"alignData": {
"kind": "width",
"n": 2
},
"alignContents": {
"id": 4,
"kind": "command",
"command": {
"command": "group",
"id": 0,
"groupContents": {
"id": 3,
"kind": "list",
"list": [
{
"id": 0,
"kind": "text",
"text": "entry Shut_Down"
},
{
"id": 2,
"kind": "command",
"command": {
"command": "group",
"id": 0,
"groupContents": {
"id": 1,
"kind": "list",
"list": [
]
},
"break": false,
"expandedStates": null
}
}
]
},
"break": false,
"expandedStates": null
}
}
}
}
]
},
"break": false,
"expandedStates": null
}
},
{
"id": 8,
"kind": "text",
"text": ";"
}
]
},
"break": false,
"expandedStates": null
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
entry Shut_Down;
1 change: 1 addition & 0 deletions testsuite/tests/unparsing/entry_decl/simple_entry/test.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
entry Shut_Down;
6 changes: 6 additions & 0 deletions testsuite/tests/unparsing/entry_decl/simple_entry/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: |
This test checks the formatting of a simple entry declaration.
It is expected the declaration stays on a single line.
driver: unparser
rule: entry_decl
304 changes: 304 additions & 0 deletions testsuite/tests/unparsing/entry_decl/with_parameter/doc-baseline.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
entry Read(V : out Item);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
entry Read (V : out Item);
7 changes: 7 additions & 0 deletions testsuite/tests/unparsing/entry_decl/with_parameter/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: |
This test checks the formatting of an entry declaration
with parameters.
It is expected the declaration stays on a single line.
driver: unparser
rule: entry_decl
Loading

0 comments on commit 2203ecf

Please sign in to comment.