Skip to content

Commit

Permalink
Add docstring to squirrel_ast_creator
Browse files Browse the repository at this point in the history
  • Loading branch information
pablolh committed Nov 30, 2023
1 parent 824a39c commit 7b9135f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opensquirrel/parsing/antlr/squirrel_ast_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@


class SquirrelASTCreator(CQasm3Visitor.CQasm3Visitor):
"""
This class creates a SquirrelAST object from an ANTLR parse tree.
It is an instance of the ANTLR grammar visitor.
Therefore, method names are fixed and based on rule names in the Grammar .g4 file.
"""
def __init__(self, gates):
self.gates = gates
self.squirrel_ast = None
Expand Down

0 comments on commit 7b9135f

Please sign in to comment.