Commit graph kyomato/kyomato-core
Author SHA1 Message Date
Dzuchun
6d457332bc Massive work chunk I don't want to cetegorize
API is not stable now anyway, so whatever

- Most `Selci` kinds can be seeded now
- Most `Selci` kinds can iterate over their sub`Selci`
2024-08-25 20:05:22 +03:00
Dzuchun
428eb13f74 minor formatting 2024-08-25 20:04:20 +03:00
Dzuchun
639f2f9692 Made my span struct compatible with miette's one 2024-08-25 20:03:17 +03:00
Dzuchun
1e4ae30f5a Added seeding functions for Span
Now span can be seeded as a plain text or as an ident
2024-08-25 20:02:43 +03:00
Dzuchun
3c8a296f56 Changed Idt type
Since creating DSTs is apparently hard, it's a wrapper around `&str` now
2024-08-25 19:57:16 +03:00
Dzuchun
b6ca2f16e6 Incorporated miette into the existing error type 2024-08-25 19:51:05 +03:00
Dzuchun
3b6498eebf Added miette ecosystem
My goal was to not break `no_std` support with them, so after some time
I've finally found `miette` and `thiserror` forks that seem to suppoert
`no_std`
2024-08-25 19:46:24 +03:00
Dzuchun
1c92b8742e Added a bunch of features to derive-more 2024-08-25 19:44:53 +03:00
Dzuchun
0bd354d6c2 Added default feature
(just for the sake of it)
2024-08-25 19:44:13 +03:00
Dzuchun
c89e6a0ed7 Defined InnerSelci for most Selci types 2024-08-25 08:09:22 +03:00
Dzuchun
1663522dc0 Implemented basic code span 2024-08-25 08:08:19 +03:00
Dzuchun
c0505b1c3a Make kyomato-core a no_std crate with alloc 2024-08-25 08:07:30 +03:00
Dzuchun
a04dcba4d1 Move SelciTree to a dedicated file 2024-08-25 08:04:54 +03:00
Dzuchun
940846a31a Refined Selci definitions
Now each `Selci` kind is stored in a separate module
2024-08-24 22:17:47 +03:00
Dzuchun
b00956c91d Started Token rework
- `Token`s are called `Selci` (selshi) now
- `Selci` do not own or statically refer to their data. Instead they
  only contain some sort of span
- `Selci` are collected into `SelciTree` used to tranverse the AST
- All base `Selci`-related stuff (like their definitions, `SelciTree`
  ddefinintion, convenience macro creation deifnition `SenciTree`
  traversal, etc) are now to be separated into a dedicated crate
  `kyomato-core`
- For more details on rework, see temporary item in `kyomato-core/lib.rs`
2024-08-24 21:01:54 +03:00