From f391cee5e1f9192bc35978df236e15f921a690cf Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Fri, 14 Aug 2015 19:28:43 -0500 Subject: ruby: drop the [] notation for lookup function. This is in preparation for adding a second arugment to the lookup function for the CacheMemory class. The change to *.sm files was made using the following sed command: sed -i 's/\[\([0-9A-Za-z._()]*\)\]/.lookup(\1)/' src/mem/protocol/*.sm --- src/mem/slicc/parser.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/mem/slicc') diff --git a/src/mem/slicc/parser.py b/src/mem/slicc/parser.py index 0cbe9ea63..a50907a28 100644 --- a/src/mem/slicc/parser.py +++ b/src/mem/slicc/parser.py @@ -671,10 +671,6 @@ class SLICC(Grammar): "aexpr : aexpr DOT ident '(' exprs ')'" p[0] = ast.MemberMethodCallExprAST(self, p[1], p[3], p[5]) - def p_expr__member_method_call_lookup(self, p): - "aexpr : aexpr '[' exprs ']'" - p[0] = ast.MemberMethodCallExprAST(self, p[1], "lookup", p[3]) - def p_expr__class_method_call(self, p): "aexpr : type DOUBLE_COLON ident '(' exprs ')'" p[0] = ast.ClassMethodCallExprAST(self, p[1], p[3], p[5]) -- cgit v1.2.3