hy/hy
Brandon T. Willard 15c68455ec Use a fixed compiler in HyREPL
These changes make `HyREPL` use a single `HyASTCompiler` instance, instead of
creating one every time a valid source string is processed.

This change avoids the unnecessary re-initiation of the standard library
`import` and `require` steps that currently occur within the module tracked by a
`HyREPL` instance.

Also, one can now pass an existing compiler instance to `hy_repl` and
`hy_compiler`.

Closes hylang/hy#1698.
2018-11-28 16:35:42 -06:00
..
contrib Produce Python AST for require statements and skip self requires 2018-11-08 22:57:17 -06:00
core Remove hy.core compilation requirement from hy package 2018-11-28 14:12:33 -05:00
extra Produce Python AST for require statements and skip self requires 2018-11-08 22:57:17 -06:00
lex Remove hy.core compilation requirement from hy package 2018-11-28 14:12:33 -05:00
__init__.py Remove hy.core compilation requirement from hy package 2018-11-28 14:12:33 -05:00
__main__.py Make all files comply with license-header policy 2017-04-27 14:16:57 -07:00
_compat.py Catch IndentationError in isidentifier() 2018-11-27 17:15:21 -05:00
cmdline.py Use a fixed compiler in HyREPL 2018-11-28 16:35:42 -06:00
compiler.py Use a fixed compiler in HyREPL 2018-11-28 16:35:42 -06:00
completer.py Produce Python AST for require statements and skip self requires 2018-11-08 22:57:17 -06:00
errors.py Update copyright years 2018-01-01 10:38:33 -05:00
importer.py Move compilation and parsing functions out of importer.py 2018-11-28 14:12:33 -05:00
macros.py Implement minimal macro namespacing and add tests 2018-11-08 22:57:17 -06:00
model_patterns.py Fix handling of unpacking in method calls and attribute lookups 2018-07-24 09:45:00 -07:00
models.py Implement minimal macro namespacing and add tests 2018-11-08 22:57:17 -06:00