Skip to content

Commit

Permalink
[parser] make the generated parser be the bootstrap parser
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed May 2, 2024
1 parent cfd111c commit afecc15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tatsu/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ def _directive_(self):
with self._choice():
with self._option():
self._regex_()
with self._option():
self._string_()
with self._option():
self._token('None')
with self._option():
Expand All @@ -155,7 +157,7 @@ def _directive_(self):
self._constant('None')
self._error(
'expecting one of: '
"'False' 'None' <regex>"
"'False' 'None' <regex> <string>"
)
self.name_last_node('value')
self._define(['name', 'value'], [])
Expand Down

0 comments on commit afecc15

Please sign in to comment.