mattunlv / ProcessJ-main-branch-old

ProcessJ Compiler Project
2 stars 4 forks source link

empty par blocks #11

Closed mattunlv closed 7 years ago

mattunlv commented 7 years ago

public proc void main(string args[]) { par {

} }

is giving me,

"No processes ready to run. System is deadlocked remaining processes:1"

This should probably just not be legal - i.e. checked by the compiler so no code is generated.

cabelshrestha commented 7 years ago

Fixed. As suggested, no code is generated for par/parfor if body is empty.