hy
hy copied to clipboard
A dialect of Lisp that's embedded in Python
``` => (hy.eval (hy.read "(defreader r 5)")) Traceback (most recent call last): File "stdin-27f203d5d830092f5be52fd45c79e54c119e57b6", line 1, in (hy.eval (hy.read "(defreader r 5)")) hy.errors.HyEvalError: module 'hy' has no attribute 'hyx_XampersandXreader' ```...
Unable to import Pip-installed & Conda-installed modules in Anaconda managed VirtualEnv environments
Most of the information you would need should be in the console output, below. I'm running on Ubuntu 18.04 using ZSH as my shell. ```bash hy/sequential/hyid3_and_seq master ✗ 18m ⚑...
Right now they're hard-coded into `HyReader`.
Currently there is no (official) way to read code that uses reader macros defined by the active reader.
Consider ``` (do (defreader r 5) (print #r)) ``` The result is `LexException: reader macro '#r' is not defined`. Perhaps `defreader` shouldn't be legal here in the first place, but...
Currently, `foo.bar` parses as `(Symbol "foo.bar")`, and the compiler is responsible for interpreting the dot. Macros often have to specifically consider dotted identifiers, too. Things would be simpler if `foo.bar`...
On the way to Hy `1.0` I think we need to lock down what we consider priority items to prevent feature creep and help us get `1.0` out the door...
`'` isn't allowed in identifiers, but `` ` ``, `~`, and `@` are. Thus, compare: - `a'b` → `HySymbol('a'), HyExpression([HySymbol('quote'), HySymbol('b')])` - ``a`b`` → ``HySymbol('a`b')`` - ``a~b`` → `HySymbol('a~b')` -...
See #1522, all remaining syntax highlighting problems seem to be deficiencies in their lexer. Issues: - [ ] Hy doesn't lex unicode literals: [Issue 1422][1422] - [ ] Hy lexer...