Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
trs
Commits
ed513ed6
Commit
ed513ed6
authored
12 years ago
by
Sander Mathijs van Veen
Browse files
Options
Downloads
Patches
Plain Diff
Reset flex's internal buffer (depends on new pybison version).
parent
9874fec0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
external/pybison
+1
-1
1 addition, 1 deletion
external/pybison
src/parser.py
+9
-0
9 additions, 0 deletions
src/parser.py
with
10 additions
and
1 deletion
pybison
@
0a49121e
Subproject commit
91979192cf3f03df25e88fadfabe893321eb1d9c
Subproject commit
0a49121e413712be4d0d27ca7142f16ff95de4df
This diff is collapsed.
Click to expand it.
src/parser.py
+
9
−
0
View file @
ed513ed6
...
...
@@ -115,6 +115,8 @@ class Parser(BisonParser):
self
.
reset
()
def
reset
(
self
):
super
(
Parser
,
self
).
reset
()
self
.
read_buffer
=
''
self
.
read_queue
=
Queue
.
Queue
()
...
...
@@ -687,6 +689,13 @@ class Parser(BisonParser):
int yycolumn = 0;
void reset_flex_buffer(void) {
yycolumn = 0;
yylineno = 0;
YY_FLUSH_BUFFER;
BEGIN(0);
}
#define YY_USER_ACTION \
yylloc.first_line = yylloc.last_line = yylineno; \
yylloc.first_column = yycolumn; \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment