Skip to content

Commit

Permalink
servo: Merge #9817 - Stop generating a parser.out file in the source …
Browse files Browse the repository at this point in the history
…(from Ms2ger:yacc-log); r=nox

Source-Repo: https://github.com/servo/servo
Source-Revision: b355c0dbcbbbb5155170b4db971e012659081843
  • Loading branch information
Ms2ger committed Mar 1, 2016
1 parent 1a1ad99 commit 8f0aadf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 0 additions & 1 deletion servo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@
servo-test
Servo.app
.config.mk.last
parser.out
/glfw
Original file line number Diff line number Diff line change
Expand Up @@ -6438,7 +6438,8 @@ def __init__(self, outputdir='', lexer=None):
self.parser = yacc.yacc(module=self,
outputdir=outputdir,
tabmodule='webidlyacc',
errorlog=logger
errorlog=logger,
debug=False
# Pickling the grammar is a speedup in
# some cases (older Python?) but a
# significant slowdown in others.
Expand Down
12 changes: 12 additions & 0 deletions servo/components/script/dom/bindings/codegen/parser/debug.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- WebIDL.py
+++ WebIDL.py
@@ -6438,7 +6438,8 @@ class Parser(Tokenizer):
self.parser = yacc.yacc(module=self,
outputdir=outputdir,
tabmodule='webidlyacc',
- errorlog=logger
+ errorlog=logger,
+ debug=False
# Pickling the grammar is a speedup in
# some cases (older Python?) but a
# significant slowdown in others.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
wget https://mxr.mozilla.org/mozilla-central/source/dom/bindings/parser/WebIDL.py?raw=1 -O WebIDL.py
patch < abstract.patch
patch < debug.patch
patch < legacy-unenumerable-named-properties.patch

# TODO: update test files from https://dxr.mozilla.org/mozilla-central/source/dom/bindings/parser/tests

0 comments on commit 8f0aadf

Please sign in to comment.