Ed Page
3419a8df85
feat(parse): Make identifier symbols configurable
2019-08-07 07:36:49 -05:00
Ed Page
e093135ac1
feat(parse): Make digits in identifier optional
2019-08-07 07:28:25 -05:00
Ed Page
50c89ef761
fix(parse): Change ignore_hex default
2019-08-07 07:24:54 -05:00
Ed Page
6ae42b4c1e
refactor(parse): Explicit Default
2019-08-07 07:24:28 -05:00
Ed Page
36fefc166e
refactor(parser): Add more traits to builder
2019-07-27 19:50:34 -06:00
Ed Page
039664339d
refactor(parser): Switch to by-ref builder
...
Since nothing is being moved into `Parser`, we don't get any performance
benefit with a moving builder, so switching to a by-ref builder.
2019-07-27 19:50:34 -06:00
Ed Page
3cf9d8672c
refactor(parser): Move hex handling to parser
2019-07-27 19:50:33 -06:00
Ed Page
d0b9979c36
refactor(parser): Split out parser creation
2019-07-27 19:50:33 -06:00
Ed Page
8e4708dfdf
refactor(parser): Split out into struct
2019-07-27 19:50:33 -06:00
Ed Page
ec307dffdd
feat: Check file names
...
Fixes #24
2019-07-19 07:28:17 -06:00
Ed Page
6da830572a
refactor(parser): Rename bytes-parser
2019-07-19 07:28:16 -06:00
Ed Page
b6ab968478
feat(parser): Treat contractions as a word
...
This should be safe. Rarely is `'` used as syntax in a language that
separates literals.
- `'` is used within hex literals in C++ but we want to treat them as
one word
- `'` is used for lifetimes in Rust but there are other symbols on the
left side.
2019-07-13 20:15:23 -06:00
Ed Page
166e2630c0
fix(parse): Don't assume boundary characters are one byte
...
This was inspired by heck. They have an invariant to ensure this isn't
a problem (only accept `_` as boundary) while on the other hand we
accept a lot of things as boundaries.
2019-07-06 21:54:45 -06:00
Ed Page
859769b835
refactor: Rename Symbol to Identifier
...
This is more descriptive
2019-06-24 21:46:39 -06:00
Ed Page
5bbd6f530a
chore: Fix typo
2019-06-24 21:46:38 -06:00
Ed Page
881fce5114
feat(parse): Track the case of each word
2019-06-24 21:46:38 -06:00
Ed Page
3d1fb3b1ae
feat(parse): Process words composing symbols
2019-06-15 22:21:40 -06:00
Ed Page
d78713dba1
fix: Improve the quality of symbols being reported
2019-06-14 15:57:41 -06:00
Ed Page
34c922509a
chore(CI): Push the regex lint under a rug
2019-06-14 15:14:42 -06:00
Ed Page
9ccfc9c27d
fix: Clippy
2019-06-14 06:51:22 -06:00
Ed Page
9f198c973d
chore: Run cargo fmt
2019-06-14 06:45:39 -06:00
Ed Page
5992ba110d
refactor: Clarify intent of Token
2019-04-16 20:22:01 -06:00
Ed Page
f8d42116da
refactor: Rename module
2019-04-16 20:16:31 -06:00