39 Commits

Author SHA1 Message Date
Laurenz
40561e57fb Remove most fields from SyntaxKind enum 2023-01-15 12:40:27 +01:00
Laurenz
ab03f32240 Reorganize syntax module 2023-01-14 12:34:17 +01:00
Laurenz
29b31c4a5a New import syntax 2023-01-03 12:32:17 +01:00
Laurenz
f5f7df7247 Documentation 2022-12-20 16:11:37 +01:00
Laurenz
b4b022940b Syntax and example sections 2022-12-19 01:16:35 +01:00
Laurenz
b6202b646a Reflection for castables 2022-12-15 23:11:20 +01:00
Laurenz
9ba4d2c134 New macro setup 2022-12-14 10:09:44 +01:00
Laurenz
4c73456fc1 Move highlighting into new IDE module 2022-12-14 10:02:19 +01:00
Laurenz
9bc90c371f Introspection 2022-12-02 15:45:18 +01:00
Laurenz
0efe669278 Reorganize library and tests 2022-11-29 14:18:13 +01:00
Laurenz
6bafc63910 Document metadata 2022-11-26 23:52:01 +01:00
Laurenz
96f72eee6c Separate typesetting and compilation 2022-11-24 17:51:07 +01:00
Laurenz
5ae81971f2 Introduce Library 2022-11-23 16:07:54 +01:00
Laurenz
b2a3d3f235 More general evaluation interface 2022-11-23 12:00:06 +01:00
Laurenz
2ce727fc95 Make inner node and node data private 2022-11-22 14:40:56 +01:00
Laurenz
72361106bc Add flag for model printing 2022-11-20 21:39:19 +01:00
Laurenz
321121c6c3 Move font folder 2022-11-20 18:14:13 +01:00
Laurenz
8eeb4ad8f6 Rename margins to margin 2022-11-19 23:33:33 +01:00
Laurenz
efd1853d06 Show it!
- New show rule syntax
- Set if syntax
- Removed wrap syntax
2022-11-07 12:46:05 +01:00
Laurenz
eb951c008b Style changes 2022-11-04 11:38:09 +01:00
Laurenz
33928a00dc Tidy up library 2022-11-03 16:50:26 +01:00
Laurenz
46921a8c28 Separate test crate
This removes the not-really-cyclic dependency that confuses rust-analyzer. See also: https://github.com/rust-lang/rust-analyzer/issues/2414
2022-11-03 16:13:35 +01:00
Laurenz
cbbc46215f Layout elements and pure rust rendering 🥏 2020-08-02 21:17:42 +02:00
Laurenz
659248d52f Raw lengths 🚲
Replace unitless length with raw f64 and introduce length type with unit.
2020-08-01 19:15:55 +02:00
Laurenz
04c05502be Add some fonts 📜 2020-08-01 17:59:38 +02:00
Laurenz
06dbac6efd Port font handling to fontdock and ttf-parser 🛳
- Use fontdock for indexing fonts and querying
- Typst binary now automatically indexes and uses system fonts in addition to a fixed font folder!
- Removes subsetting support for now (was half-finished anyways, plan is to use harfbuzz for subsetting in the future)
- Adds font width configuration support
2020-08-01 00:10:54 +02:00
Laurenz
bbcdeb128c Move, rename and switch some things (boring) 🚚
- Problems -> Diagnostics
- Position -> Pos
- offset_spans -> Offset trait
- Size -> Length (and some more size types renamed)
- Paper into its own module
- scope::Parser -> parsing::CallParser
- Create `Decorations` alias
- Remove lots of double newlines
- Switch from f32 to f64
2020-07-29 18:09:51 +02:00
Laurenz
e2ef4f64e7 Rename errors to problems and make error! macro more ergonomic 🧼
Also adds a `warning!` macro.
2020-07-26 17:28:43 +02:00
Laurenz
751812f451 Serialize layouts with serde 🔠 2020-02-04 21:36:29 +01:00
Laurenz
e63ce52ae0 Merge Parsed and Layouted types into Pass with Feedback 🌝🎢🌚 2020-02-04 19:22:23 +01:00
Laurenz
5c11aa7223 Adapt for tonty and fix a few bugs 🚧 2020-02-04 11:22:00 +01:00
Laurenz
ec60795575 Port tests 🚁 2020-02-03 15:05:34 +01:00
Laurenz
3150fd5643 Better Debug/Display and Derives 🧽 2020-02-03 12:22:02 +01:00
Laurenz
40ea35cbe7 Upgrade to new toddle interface 🐳 2020-02-03 10:37:50 +01:00
Laurenz
78da2bdd5d Decoupled function parser 🔗 [WIP] 2020-01-21 17:09:31 +01:00
Laurenz
95e6b078fe Move to non-fatal errors 🪂 [WIP]
- Dynamic models instead of SyntaxTrees
- No more ParseResult/LayoutResult
- Errors and Decorations which are propagated to parent contexts
- Models are finally clonable
2020-01-19 21:53:24 +01:00
Laurenz
277f2d2176 ColorToken serialization + function fix 🚧 2020-01-18 15:58:36 +01:00
Laurenz
70878885f5 Do argument parsing ☑ 2020-01-16 23:00:39 +01:00
Laurenz
08b91a265f Powerful parser testing 🐱👤 2020-01-16 17:51:04 +01:00