import java.util.* ; import java.net.* ; import java.io.*; import java.lang.*; // to be able to read from the input // *implements* Runnable is needed because the run method of this class //is activated by a thread S = Service *implements* Runnable. Service : Basic_Service | Repeatition | Time_Limit | Sequential_Execution | Concurrent_Execution . Basic_Service = "url" "("
Address ")". // first and second have been inserted to make the cd LL(1) Sequential_Execution = "first" S "?" "second" S . Address = String. Repeatition = "repeat" "(" S ")". Time_Limit = "timeout" "("