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 Dec 4, 2023
1 parent 76b1685 commit 3382967
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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,12 @@


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 3382967

Please sign in to comment.