Skip to content
Snippets Groups Projects
Commit 5565bc72 authored by Johannes Mey's avatar Johannes Mey
Browse files

add OpenAcc clause slot

parent db8536cb
No related branches found
No related tags found
No related merge requests found
...@@ -481,6 +481,7 @@ List acc_clause_list = ...@@ -481,6 +481,7 @@ List acc_clause_list =
//// abstract AccClause ; //// abstract AccClause ;
public AccClause acc_clause = public AccClause acc_clause =
<BEGINNING>
acc_if_clause acc_if_clause
/ acc_reduction_clause / acc_reduction_clause
/ acc_device_clause / acc_device_clause
......
...@@ -50,4 +50,10 @@ aspect Printing { ...@@ -50,4 +50,10 @@ aspect Printing {
s.literalAppend(getString()); s.literalAppend(getString());
s.append("#"); s.append("#");
} }
public void SlotAccClause.prettyPrint(PrettyPrinter s) {
s.append("#");
s.literalAppend(getSlotName());
s.append("#");
}
} }
...@@ -302,6 +302,17 @@ Designator designator += ...@@ -302,6 +302,17 @@ Designator designator +=
/ <BEGINNING> ... / <BEGINNING> ...
; ;
// == AccClause Slots ===================================================
//// SlotAccClause:AccClause ::= <SlotName:String> ;
AccClause acc_clause +=
<DesignatorSlot> NUMBERSIGN n:slot_name (COLON A C C UNDERSCORE C L A U S E)? NUMBERSIGN
{
yyValue = new SlotAccClause(n);
}
/ <BEGINNING> ...
;
// == Name Slots =================================================== // == Name Slots ===================================================
//// SlotForName:Name ; //// SlotForName:Name ;
......
! BlockSlot
!$acc loop #MYCLAUSE#
do x = 0,p
#test#
end do
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment