fixed some bugs
[cdsspec-compiler.git] / grammer / spec_compiler.jj
index cbe2e28d6240ab8a6853df36d0c68c7d647ce15a..f914094a1f249af4838c3aeea860edf07897f742 100644 (file)
@@ -181,7 +181,7 @@ import edu.uci.eecs.specCompiler.specExtraction.VariableDeclaration;
                        return null;
                }
 
-               public static ArrayList<String> getTemplateArg(String line)
+               public static ArrayList<VariableDeclaration> getTemplateArg(String line)
                throws ParseException {
                        InputStream input = new ByteArrayInputStream(line.getBytes());
                        SpecParser parser = new SpecParser(input);
@@ -433,7 +433,6 @@ SKIP : {
        <OR_EQUALS: "|=">
 |
        <AND_EQUALS: "&=">
-
 |
        <SEMI_COLON: ";">
 |
@@ -583,13 +582,11 @@ String ParameterizedName() :
 
 FunctionHeader FuncDecl() :
 {
-       ArrayList<VariableDeclaration> templateList;
        String ret;
        QualifiedName funcName;
        ArrayList<VariableDeclaration> args;
 }
 {
-aa
        (<STATIC> | <INLINE>)*
        ret = Type() 
        funcName = ParseQualifiedName()