-
- System.out.println("Spec<" + specIndex + "> Begin: "
- + _beginLine + " End: " + _endLineNum);
- System.out.println(specText);
- specIndex++;
-
+ if (isComment(specText.toString())) {
+ specText = new StringBuilder();
+ continue;
+ }
+ Construct inst = SpecParser.parseSpec(specText
+ .toString());
+ if (inst instanceof InterfaceConstruct) {
+ funcDecl = readFunctionDecl(reader);
+ specConstruct = new SpecConstruct(
+ specText.toString(), file,
+ _beginLineNum, _endLineNum, inst, funcDecl);
+ } else {
+ specConstruct = new SpecConstruct(
+ specText.toString(), file,
+ _beginLineNum, _endLineNum, inst);
+ }
+ System.out.println(specConstruct);