Skip to content

Commit 86d3697

Browse files
author
pablolh
committed
Add docstring to squirrel_ast_creator
1 parent 81884f3 commit 86d3697

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

opensquirrel/parsing/antlr/squirrel_ast_creator.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66

77
class SquirrelASTCreator(CQasm3Visitor.CQasm3Visitor):
8+
"""
9+
This class creates a SquirrelAST object from an ANTLR parse tree.
10+
It is an instance of the ANTLR grammar visitor.
11+
Therefore, method names are fixed and based on rule names in the Grammar .g4 file.
12+
"""
13+
814
def __init__(self, gates):
915
self.gates = gates
1016
self.squirrel_ast = None

0 commit comments

Comments
 (0)