Emacs Lisp parser
Project description
A simple package to parse Emacs Lisp expressions from Python.
Simple Usage
>>> import elisp
>>> numbers = elisp.loads("(1 2 3)")
>>> numbers.car
1
>>> numbers.cdr.cdr.car
3
>>> numbers.cdr.cdr.cdr is elisp.NIL
True
Type Mappings
The following types are supported and are mapped to the respective Python types.
integer to int
float to float
symbol to elisp.ELispSymbol, a subclass of str
list, cons to elisp.ELispCons
unibyte string to bytearray
multibyte string to unicode (without the \C-a syntax)
vector to list
Unsupported Types
The following types are not supported:
Characters (like ?a or ?\C-f)
Char-Table
Bool-Vector
Hash Table
Byte-Code
Grammar
See the file [elisp.ebnf](elisp/elisp.ebnf) for the grammar used by this package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elisp-0.5.tar.gz.
File metadata
- Download URL: elisp-0.5.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc75dfbf980e53e230caddc60c52491fedd6e064ac85007d54c3d9d1ce1b5b95
|
|
| MD5 |
ea7f98815a42bac48c16c4379b9a6d3b
|
|
| BLAKE2b-256 |
d7c213ba98ca144612bd145c3fc365d5f983123b89f6fddece6e629e7081693e
|
File details
Details for the file elisp-0.5-py2-none-any.whl.
File metadata
- Download URL: elisp-0.5-py2-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e2cbd38260dbbc4622786e1f743d06c04a03a9e6e45287a7928d1c56139f317
|
|
| MD5 |
de6aaa01d74a50a9f60b3eb2ac10281a
|
|
| BLAKE2b-256 |
ac03a1e503483b97a20767805887528e6e1ed5212e080103860d294667013081
|