Commit Graph

59 Commits

Author SHA1 Message Date
Alex Chan
ce7ce98a01 Update Python build scripts to use the print function
In Python 3, 'print' was changed from a statement to a function.  Using
the __future__ module allows scripts to use print function whether
running with Python 2.6+ or Python 3.x.  This commit changes as many
instances of print as I could find to use the print function and the
__future__ module.
2015-12-18 23:00:55 +00:00
Johan K. Jensen
fa76656c82 Remove instances of duplicated words 2015-12-03 20:00:29 +01:00
Dave Abrahams
be9acc08bf Fix another gyb parsing bug
Fixes <rdar://problem/15928178> gyb miscompiles nested if/elif

Swift SVN r32873
2015-10-24 16:43:58 +00:00
Dave Abrahams
b3ca7eed40 gyb parsing fixes
Fixes <rdar://problem/18900352> gyb miscompiles nested loops

Swift SVN r32863
2015-10-24 04:47:57 +00:00
Dave Abrahams
f2ab974977 Rename some things in gyb
We were still using 'at' as a prefix on things when the gyb directive
character had already been changed to %

Swift SVN r32862
2015-10-24 04:47:55 +00:00
Dave Abrahams
b4b8e6cca0 Fix a tiny gyb bug
Probably doesn't affect anything

Swift SVN r32861
2015-10-24 04:47:55 +00:00
Dave Abrahams
d8beed1394 [gyb] Fix line directive generation
Swift SVN r29959
2015-07-08 04:48:44 +00:00
Dave Abrahams
ef711586dd [gyb] Support importing local .py files
Allow the template to import .py files from its own directory.  This is
useful for reusing support code across .gyb files.

Swift SVN r19495
2014-07-03 00:01:42 +00:00
Dave Abrahams
af8421cac8 [utils] Move gyb into a .py file
This allows Python or .gyb files to do "import gyb" and use the basic
components of the system.  For example, we could create a Python
function to generate the boilerplate for a Mirror.  That function could
use gyb.parseTemplate() to load an inline template and
gyb.executeTemplate() to generate the code.  Then calls to that function
can be embedded in ${...} in a .gyb file.

Swift SVN r19490
2014-07-02 23:38:47 +00:00