Skip to content

Commit

Permalink
Merge pull request #161 from Zhaoyilunnn/fix-qasm-parser
Browse files Browse the repository at this point in the history
fix: close #140
  • Loading branch information
Zhaoyilunnn committed Apr 15, 2024
2 parents 2f8c0d7 + 2740d2f commit c1aeb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quafu/qfasm/qfasm_lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def t_INCLUDE(self, _):
return self.lexer.token()

def t_FLOAT(self, t):
r"([0-9]\d*\.\d*)"
r"([0-9]+\.\d*(e[-+]?[0-9]+)?)"
t.value = float(t.value)
return t

Expand Down

0 comments on commit c1aeb7f

Please sign in to comment.