Project

General

Profile

Bug #1009

Improve Parsing for SDAG Boolean Expressions

Added by Eric Mikida over 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Charmxi
Target version:
-
Start date:
03/10/2016
Due date:
% Done:

0%


Description

See https://lists.cs.illinois.edu/lists/arc/charm/2016-03/msg00003.html for context.

In core meeting, this was discussed and it was stated that in the past Bob's suggested approach was difficult, because even getting the parser to match the parens around an if/while condition was difficult since we can't fully parse C++ but it may be useful to explore this a bit deeper.

History

#1 Updated by Phil Miller almost 3 years ago

  • Assignee deleted (Ralf Gunter CorrĂȘa Carvalho)

#2 Updated by Eric Bohm almost 3 years ago

  • Assignee set to Eric Mikida

#3 Updated by Robert Steinke almost 3 years ago

In my original request I actually had two suggestions. The second one may be infeasible if the C++ is hard to parse, but I'd like to draw attention again to my first suggestion.

serial {
sdagCondition = (some complex boolean expression);
}

if (sdagCondition) {
...

In order to have the above code in my .ci file I need to have sdagCondition be a member variable of the class. Could there be some syntactic sugar that even if it doesn't eliminate the need for the serial block, at least eliminates the need for me to declare sdagCondition as a member of my class? My idea was a hidden member variable declared in the SDAG_CODE macro.

Also available in: Atom PDF