Commit Graph

41 Commits

Author SHA1 Message Date
Laurenz c8f6b5bd5c Desugar body into last argument 🍩 2020-08-14 20:43:03 +02:00
Laurenz 1fb2d5103d Always parse bodies as syntax trees 🌳
Previously they were passed as strings to the function parser, now they are parsed and then passed as trees to the function. This allows making bodies sugar for a last content argument. While it removes some flexibility allowing function to parse arbitrary syntaxes in their bodies, these can be modelled as (raw) string arguments.
2020-08-14 20:13:50 +02:00
Laurenz 2467cd6272 Refactor function parsing ♻ 2020-08-04 13:48:07 +02:00
Laurenz dbfb3d2ced Formatting, documentation and small improvements 🧽 2020-08-03 16:04:55 +02:00
Laurenz 5a8f2fb73d Replace body! macro with functions 🧰 2020-08-02 22:21:58 +02:00
Laurenz 266d457292 Refactor model into tree 🛒 2020-08-02 22:05:49 +02:00
Laurenz 533374db14 Refactor argument parsing 🔬 2020-08-02 16:31:34 +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 53ca5a7fc5 Refactor parser 🚇 2020-07-27 13:47:29 +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 38a2424742 Remove duplicate spans for func args 2020-07-18 18:02:38 +02:00
Laurenz 5badb4e8ff Write lots of parser tests 🌪 2020-02-09 14:14:32 +01: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 40ea35cbe7 Upgrade to new toddle interface 🐳 2020-02-03 10:37:50 +01:00
Laurenz 20fb4e7c37 Document everything 📜 2020-01-26 15:51:13 +01:00
Laurenz 0a087cd28b Reorganize modules 🧱 2020-01-24 16:23:57 +01:00
Laurenz ecf0ff4d05 Introduce a set of macros for writing functions more concisely 🎁 2019-10-23 00:21:40 +02:00
Laurenz cff325b520 Add spacing functions 🔛 2019-10-22 21:40:37 +02:00
Laurenz 1987e5861c Create basic box and line-break functions 📦 2019-10-17 12:55:34 +02:00
Laurenz f22f9513ae Add pagebreak function ⏭ 2019-10-17 10:12:34 +02:00
Laurenz 9a1d57a11a Implement context-modifying align 🧩 2019-10-17 09:28:06 +02:00
Laurenz 7c0899b537 Run rustfmt 🚿 2019-10-13 13:10:21 +02:00
Laurenz 5c04185892 Reformat some things 🧺 2019-10-13 13:09:39 +02:00
Laurenz e2d17aa9d9 Move functions to command-based architecture ✈ 2019-10-13 12:36:45 +02:00
Laurenz 463e4ebd82 Refactor layout types 🚧 2019-10-13 12:08:07 +02:00
Laurenz 8f788f9a4f Add standard `align` function and support right-alignment ➡️ 2019-10-10 23:38:03 +02:00
Laurenz f22a307000 Extract into separate repository 🧱 2019-10-09 19:46:42 +02:00
Laurenz 5de92f6d5e Add monospace syntax 📰 2019-06-22 17:01:32 +02:00
Laurenz 099ce71aba Unify font classes + By-value-contexts ⚖ 2019-06-22 15:32:19 +02:00
Laurenz f6fe3b5cdd Implement function layouting ✒ 2019-06-22 12:25:01 +02:00
Laurenz c38e17d91f Thoroughly improve documentation 📝 2019-05-26 21:59:33 +02:00
Laurenz b3734bbc04 Restructure engine into modular layouter 🍂 2019-05-24 12:24:10 +02:00
Laurenz e3215fa3b9 Unify parsing and typesetting functions. 🗳 2019-05-20 11:36:31 +02:00
Laurenz 37c336063b Simplify the parsing model 🔋 2019-05-01 19:47:43 +02:00
Laurenz 27947e212c Require scope for parser ♻ 2019-05-01 17:19:27 +02:00
Laurenz c384e52480 Improve code quality 🎫 2019-04-29 13:41:00 +02:00
Laurenz d514a05af1 Make parse tokens more static and efficient 🗜 2019-04-29 12:43:58 +02:00
Laurenz 14c9ff571d Remove stack from parser ♻ 2019-04-29 11:03:17 +02:00
Laurenz f279c52b50 Simple dynamic, scoped function parsing 📥 2019-04-29 00:12:36 +02:00