175 Commits

Author SHA1 Message Date
Laurenz
0a9172cb15 Enforce and make use of span ordering 2022-05-31 13:19:09 +02:00
Laurenz
9bbebd69dd Numbered spans 2022-05-31 12:37:05 +02:00
Laurenz
08a6188123 Remove green/red distinction 2022-05-31 10:40:30 +02:00
Laurenz
ae68a15a46 Print function for debugging 2022-05-27 14:19:58 +02:00
Laurenz
806d9f0d9a Pure functions! 2022-05-26 17:14:44 +02:00
Laurenz
c010cbc17d Move route from context to VM 2022-05-25 13:59:06 +02:00
Laurenz
3309ff9fe5 Slim down context 2022-05-25 11:16:03 +02:00
Martin Haug
6a8a0ec6ec Code Review: Heap is Stack. Unsafe is Good.
Spaghetti Code is Style.
2022-05-03 12:59:41 +02:00
Martin Haug
33213abe7d New page margins API 2022-05-02 18:48:32 +02:00
Laurenz
8fbb11fc05 Extract model module 2022-04-24 15:47:42 +02:00
Laurenz
255d4c620f Automatic frame merging 2022-04-19 13:54:04 +02:00
Laurenz
c5b3f8ee98 Switch to unscanny 2022-04-16 22:23:57 +02:00
Laurenz
712c00ecb7 Em units 2022-04-08 15:45:14 +02:00
Laurenz
1192132dc0 Rename length-related types
`Fractional` => `Fraction`
`Relative` => `Ratio`
`Linear` => `Relative`
2022-04-07 16:19:51 +02:00
Laurenz
3d52387eea Rework style chains 2022-04-07 11:07:00 +02:00
Laurenz
ae0a56cdff Non-returning error macro 2022-03-15 11:30:13 +01:00
Laurenz
2890a156d2 Remove classes and improve naming 2022-03-12 14:24:24 +01:00
Laurenz
3ca5b23823 Reorganize library 2022-02-28 23:54:34 +01:00
Laurenz
e1f29d6cb9 Rework the core context 2022-02-23 14:53:55 +01:00
Laurenz
2bf32c51bc Remove layout cache 2022-02-22 12:42:02 +01:00
Laurenz
61d1e1a683 Remove layout-cache feature 2022-02-18 17:33:13 +01:00
Laurenz
e01970b20a Basic show rules 2022-02-18 16:57:53 +01:00
Laurenz
05ec0f993b Headers and footers 2022-02-18 01:07:50 +01:00
Laurenz
35610a8c6a Fallible layout 2022-02-17 17:41:45 +01:00
Laurenz
c5e67af22b Merge eval and layout contexts into Vm 2022-02-17 17:32:56 +01:00
Laurenz
20a1fd8bc7 Remove root node 2022-02-02 20:33:19 +01:00
Martin Haug
fe70db1f4c New color stuff
- CMYK function
- More default colors
- Interpret RGB values as sRGB
2022-02-08 21:12:09 +01:00
Laurenz
20b1a38414 Switch from Rc to Arc 2022-01-31 16:47:00 +01:00
Laurenz
8f37189d6f Fix incremental parsing bugs 2022-01-31 13:26:52 +01:00
Laurenz
8d1ce390e2 Rework strong and emph
- Star and underscore not parsed as strong/emph inside of words
- Stars/underscores must be balanced and they cannot go over paragraph break
- New `strong` and `emph` classes
2022-01-30 22:46:59 +01:00
Laurenz
d7072f378f Also debug print syntax tree 2022-01-30 11:16:57 +01:00
Laurenz
3739ab7720 Export into rendered images 2022-01-24 17:39:49 +01:00
Laurenz
db158719d6 Simplify CLI 2022-01-24 16:44:52 +01:00
Laurenz
b3062ee880 Make use of new Rust 1.58 formatting feature 2022-01-13 18:43:18 +01:00
Martin Haug
c994cfa7d8 Code Review: Your parsers were so preoccupied with whether they could 2022-01-04 00:21:33 +01:00
Martin Haug
98c96ba1cb Fix parser / space / error bug 2022-01-02 14:46:08 +01:00
Martin Haug
5f114e18eb Added a test framework for incremental parsing
Fix several errors:

- Indented markup is now reparsed right
- All end group errors will now fail a reparse
- Rightmost errors will always fail a reparse
2022-01-02 00:46:19 +01:00
Laurenz
f174134aa2 Style chains 2021-12-30 12:12:19 +01:00
Laurenz
5d5d8a21cf Bump and lock dependencies 2022-01-01 12:23:00 +01:00
Laurenz
11565a40b3 Set Rules Episode IX: The Rise of Testing 2021-12-21 00:20:24 +01:00
Laurenz
57f5c0a1b1 Set Rules Episode V: The Tests Strike Back 2021-12-15 11:12:38 +01:00
Laurenz
ae38be9097 Set Rules Episode IV: A New Fold 2021-12-15 11:11:57 +01:00
Laurenz
40b87d4066 Set Rules Episode II: Attack of the properties 2021-12-07 16:36:39 +01:00
Martin Haug
f15ee7efb6 Add SVG capabilities 2021-12-06 14:58:57 +01:00
Laurenz
e915cc4ef0 No more duplicate debug prints due to incremental tests 2021-11-29 23:22:53 +01:00
Laurenz
3a15922d2f X/Y abstractions 2021-11-26 16:32:06 +01:00
Laurenz
8a88f71cb1 Transformations 2021-11-23 22:04:08 +01:00
Laurenz
0a974d86ba Welcome to Tigerland 2021-11-22 15:26:56 +01:00
Laurenz
ed50661378 Castable optional and smart values 2021-11-29 16:47:35 +01:00
Laurenz
cef46e6c40 Strokes 2021-11-20 15:51:07 +01:00