Skip to content

Commit

Permalink
Merge pull request #153 from beizhansl/master
Browse files Browse the repository at this point in the history
fix: FLOAT of lexer
  • Loading branch information
Zhaoyilunnn committed Mar 31, 2024
2 parents cfcc526 + a1313e2 commit 27b2962
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"(([1-9]\d*\.\d*)|(0\.\d*[1-9]\d*))"
r"([0-9]\d*\.\d*)"
t.value = float(t.value)
return t

Expand Down

0 comments on commit 27b2962

Please sign in to comment.