[Synopsis-changes] Synopsis/Synopsis/Synopsis AST.py,1.29,1.30
Stefan Seefeld stefan at synopsis.fresco.orgTue Dec 2 05:44:10 UTC 2003
- Previous message: [Synopsis-changes] Synopsis/Synopsis/tests/Processors config.py,1.1,NONE
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters Dump.py,1.7,1.8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/Synopsis
In directory frida:/tmp/cvs-serv30701/Synopsis
Modified Files:
AST.py
Log Message:
add new Builtin type
Index: AST.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/Synopsis/AST.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -p -d -r1.29 -r1.30
--- AST.py 11 Nov 2003 06:05:03 -0000 1.29
+++ AST.py 2 Dec 2003 05:44:07 -0000 1.30
@@ -299,6 +299,16 @@ class Declaration:
"""Change the accessibility"""
self.__accessibility = axs
+class Builtin (Declaration):
+ """An ast node for internal use only."""
+
+ def __init__(self, file, line, language, type, name):
+ """Constructor"""
+
+ Declaration.__init__(self, file, line, language, type, name)
+
+ def accept(self, visitor): visitor.visitBuiltin(self)
+
class Macro (Declaration):
"""A preprocessor macro. Note that macros are not strictly part of the
AST, and as such are always in the global scope. A macro is "temporary" if
@@ -669,6 +679,7 @@ class Visitor :
def visitAST(self, node):
for declaration in node.declarations(): declaration.accept(self)
def visitDeclaration(self, node): return
+ def visitBuiltin(self, node): return
def visitMacro(self, node): self.visitDeclaration(node)
def visitForward(self, node): self.visitDeclaration(node)
def visitGroup(self, node):
- Previous message: [Synopsis-changes] Synopsis/Synopsis/tests/Processors config.py,1.1,NONE
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters Dump.py,1.7,1.8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list