Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
trs
Commits
ed513ed6
Commit
ed513ed6
authored
May 24, 2012
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset flex's internal buffer (depends on new pybison version).
parent
9874fec0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
external/pybison
external/pybison
+1
-1
src/parser.py
src/parser.py
+9
-0
No files found.
pybison
@
0a49121e
Subproject commit
91979192cf3f03df25e88fadfabe893321eb1d9c
Subproject commit
0a49121e413712be4d0d27ca7142f16ff95de4df
src/parser.py
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; \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment