Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
1f6ad770
Commit
1f6ad770
authored
Mar 03, 2019
by
eckhart
Browse files
- cython c-compiler switched back to gcc (slower, but more likely to be
parent
6217db53
Changes
9
Hide whitespace changes
Inline
Side-by-side
build_cython-modules.sh
View file @
1f6ad770
...
...
@@ -11,6 +11,7 @@ rm DHParser/*.so
# rm DHParser/transform.c
# rm DHParser/transform.cpython*.so
# CFLAGS="-O3 -march=native -mtune=native"
export
CC
=
clang
;
python3 setup.py build_ext
--inplace
# export CFLAGS="-O3 -march=native -mtune=native"
# export CC=clang; python3 setup.py build_ext --inplace
python3 setup.py build_ext
--inplace
strip
`
ls
DHParser/
*
.so
`
examples/Arithmetic/ArithmeticCompiler.py
View file @
1f6ad770
...
...
@@ -83,7 +83,7 @@ class ArithmeticGrammar(Grammar):
root__
=
expression
def
get_grammar
()
->
ArithmeticGrammar
:
global
GLOBALS
"""Returns a thread/process-exclusive ArithmeticGrammar-singleton."""
try
:
grammar
=
GLOBALS
.
Arithmetic_00000001_grammar_singleton
except
AttributeError
:
...
...
examples/ArithmeticRightRecursive/ArithmeticRightRecursiveCompiler.py
View file @
1f6ad770
...
...
@@ -105,6 +105,7 @@ class ArithmeticRightRecursiveGrammar(Grammar):
root__
=
expression
def
get_grammar
()
->
ArithmeticRightRecursiveGrammar
:
"""Returns a thread/process-exclusive ArithmeticRightRecursiveGrammar-singleton."""
try
:
grammar
=
GLOBALS
.
ArithmeticRightRecursive_00000001_grammar_singleton
except
AttributeError
:
...
...
examples/EBNF/EBNFCompiler.py
View file @
1f6ad770
...
...
@@ -89,7 +89,7 @@ class EBNFGrammar(Grammar):
root__
=
syntax
def
get_grammar
()
->
EBNFGrammar
:
global
GLOBALS
"""Returns a thread/process-exclusive EBNFGrammar-singleton."""
try
:
grammar
=
GLOBALS
.
EBNF_00000001_grammar_singleton
except
AttributeError
:
...
...
examples/LaTeX/LaTeXCompiler.py
View file @
1f6ad770
...
...
@@ -154,7 +154,7 @@ class LaTeXGrammar(Grammar):
root__
=
latexdoc
def
get_grammar
()
->
LaTeXGrammar
:
global
GLOBALS
"""Returns a thread/process-exclusive LaTeXGrammar-singleton."""
try
:
grammar
=
GLOBALS
.
LaTeX_00000001_grammar_singleton
except
AttributeError
:
...
...
examples/Tutorial/LyrikCompiler.py
View file @
1f6ad770
...
...
@@ -94,7 +94,7 @@ class LyrikGrammar(Grammar):
root__
=
gedicht
def
get_grammar
()
->
LyrikGrammar
:
global
GLOBALS
"""Returns a thread/process-exclusive LyrikGrammar-singleton."""
try
:
grammar
=
GLOBALS
.
Lyrik_00000001_grammar_singleton
except
AttributeError
:
...
...
examples/Tutorial/Lyrik_explicit_whitespaceCompiler.py
View file @
1f6ad770
...
...
@@ -94,7 +94,7 @@ class Lyrik_explicit_whitespaceGrammar(Grammar):
root__
=
gedicht
def
get_grammar
()
->
Lyrik_explicit_whitespaceGrammar
:
global
GLOBALS
"""Returns a thread/process-exclusive Lyrik_explicit_whitespaceGrammar-singleton."""
try
:
grammar
=
GLOBALS
.
Lyrik_explicit_whitespace_00000002_grammar_singleton
except
AttributeError
:
...
...
examples/XML/XMLCompiler.py
View file @
1f6ad770
...
...
@@ -174,7 +174,7 @@ class XMLGrammar(Grammar):
root__
=
document
def
get_grammar
()
->
XMLGrammar
:
global
GLOBALS
"""Returns a thread/process-exclusive XMLGrammar-singleton."""
try
:
grammar
=
GLOBALS
.
XML_00000001_grammar_singleton
except
AttributeError
:
...
...
examples/XMLSnippet/XMLSnippetCompiler.py
View file @
1f6ad770
...
...
@@ -121,7 +121,7 @@ class XMLSnippetGrammar(Grammar):
root__
=
document
def
get_grammar
()
->
XMLSnippetGrammar
:
global
GLOBALS
"""Returns a thread/process-exclusive XMLSnippetGrammar-singleton."""
try
:
grammar
=
GLOBALS
.
XMLSnippet_00000001_grammar_singleton
except
AttributeError
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment