188 Commits

Author SHA1 Message Date
Laurenz
fd8160f374 Remove SpanPos in favor of ErrorPos 2022-10-05 13:15:02 +02:00
Laurenz
5a8534a395 Parse basic math syntax 2022-10-04 13:45:16 +02:00
Laurenz
ddd3b6a82b Tracked memoization 2022-09-21 20:25:57 +02:00
Laurenz
3760748fdd Refactor error handling 2022-09-20 19:49:47 +02:00
Laurenz
757a701c1a A New World 2022-09-20 16:37:15 +02:00
Laurenz
e29f55bb29 Remove font store 2022-09-19 17:44:40 +02:00
Laurenz
30be75c668 Renaming
`Face` -> `Font`
`FaceId` -> `FontId`
`SourceFile` -> `Source`
2022-09-19 11:36:59 +02:00
Laurenz
0dacb2d151 Fix error messages on Windows 2022-06-14 18:18:28 +02:00
Laurenz
c81e2a5f56 Many fixes 2022-06-14 13:53:02 +02:00
Laurenz
7660978ee5 Move Arc into Frame 2022-06-12 20:51:31 +02:00
Laurenz
6e3b1a2c80 Make all fields of Frame private 2022-06-12 17:26:18 +02:00
Laurenz
ed6550fdb0 Bump dependencies 2022-06-10 23:54:16 +02:00
Laurenz
94b375ce55 Incremental renumbering 2022-06-01 13:49:02 +02:00
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