First install dependicies by:
pip install -r requirements/base.txt && pip install -r requirements/dev.txt
or if you want just to test:
pip install -r requirements/base.txt && pip install -r requirements/test.txt
And then you could test by:
./test.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn combine-symbol [x y] | |
| (symbol (str x y))) | |
| (defmacro is [char token] | |
| `(~(combine-symbol '.is token) ; combind .is with token name | |
| Tokenizer ~char)) | |
| (defmacro set-token-type [token-type] | |
| `(def token-type (~(combine-symbol '.- (clojure.string/upper-case (str token-type))) TOKEN_TYPE))) |
NewerOlder