put in rule numbering
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 25 Apr 2019 11:59:53 +0000 (12:59 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 25 Apr 2019 11:59:53 +0000 (12:59 +0100)
parse_sv.py

index 441f5cbca82693750746a34d87f0c0f13efd0c78..780878a08e9d31cf257da2b5f980e1ff4d90455b 100644 (file)
@@ -1352,7 +1352,7 @@ def p_number_2(p):
 ()
 def p_number_3(p):
     '''number : DEC_NUMBER BASED_NUMBER '''
-    print('number3', list(p))
+    print('number_3', list(p))
     num = Leaf(token.NUMBER, "%s:%s" % (p[1], p[2]))
     p[0] = num
     # { $$ = pform_verinum_with_size($1,$2, @2.text, @2.first_line);
@@ -4466,7 +4466,7 @@ def p_switchtype_12(p):
 ()
 def p_hierarchy_identifier_1(p):
     '''hierarchy_identifier : IDENTIFIER '''
-    print('hierarchy_identifier', list(p))
+    print('hierarchy_identifier_1', list(p))
     lpvalue = Leaf(token.NAME, p[1])
     p[0] = lpvalue
     # { $$ = new pform_name_t;