summaryrefslogtreecommitdiff
path: root/src/library/mod.rs
AgeCommit message (Collapse)Author
2021-01-04Better value representations, type function ๐ŸŒLaurenz
2021-01-02Dynamic values, Types, Arrays, and Dictionaries ๐Ÿš€Laurenz
- Identifiers are now evaluated as variables instead of being plain values - Constants like `left` or `bold` are stored as dynamic values containing the respective rust types - We now distinguish between arrays and dictionaries to make things more intuitive (at the cost of a bit more complex parsing) - Spans were removed from collections (arrays, dictionaries), function arguments still have spans for the top-level values to enable good diagnostics
2020-12-21Allow only a few predefined font classes in [font] ๐ŸšงLaurenz
2020-11-25Merge some modules ๐ŸฅžLaurenz
2020-11-20Basic image support ๐Ÿ–ผLaurenz
- [image] function - Image rendering in tests - Supports JPEG and PNG - No PDF export so far
2020-10-07Evaluation and node-based layouting ๐Ÿš€Laurenz
2020-10-04Small improvements ๐ŸชLaurenz
2020-10-04Shorten some names โ†”Laurenz
2020-10-04Style nits ๐ŸŽˆLaurenz
2020-10-04Separate state and constraints ๐ŸงถLaurenz
2020-10-02Refactor parser ๐ŸžLaurenz
2020-10-01Rename compute to eval โœLaurenz
2020-10-01Flatten compute moduleLaurenz
2020-08-19Make compute functions possible ๐Ÿ’ปLaurenz
Ships with the amazing new `rgb` function!
2020-08-17Tidy up library functions ๐ŸงบLaurenz
2020-08-16Add Value type and replace dyn-nodes with call-exprs ๐Ÿ—Laurenz
- In addition to syntax trees there are now `Value`s, which syntax trees can be evaluated into (e.g. the tree is `5+5` and the value is `10`) - Parsing is completely pure, function calls are not parsed into nodes, but into simple call expressions, which are resolved later - Functions aren't dynamic nodes anymore, but simply functions which receive their arguments as a table and the layouting context - Functions may return any `Value` - Layouting is powered by functions which return the new `Commands` value, which informs the layouting engine what to do - When a function returns a non-`Commands` value, the layouter simply dumps the value into the document in monospace
2020-08-04Refactor function parsing โ™ปLaurenz
2020-08-04Par nodes ๐ŸงณLaurenz
2020-08-03Formatting, documentation and small improvements ๐ŸงฝLaurenz
2020-08-02Replace body! macro with functions ๐ŸงฐLaurenz
2020-08-02Refactor model into tree ๐Ÿ›’Laurenz
2020-08-02Refactor argument parsing ๐Ÿ”ฌLaurenz
2020-08-02Unify font and page functions ๐Ÿ’•Laurenz
- Removes font weight and width warnings for now, will be added again later - Adds a bit hacky get_first function for tuples, will be refactored soon anyway
2020-08-01Port font handling to fontdock and ttf-parser ๐Ÿ›ณLaurenz
- 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-07-29Move, rename and switch some things (boring) ๐ŸššLaurenz
- 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-27Refactor parser ๐Ÿš‡Laurenz
2020-07-26Rename errors to problems and make error! macro more ergonomic ๐ŸงผLaurenz
Also adds a `warning!` macro.
2020-02-06Highlight bold / italic / monospace ๐ŸŽจLaurenz
2020-02-04Merge `Parsed` and `Layouted` types into `Pass` with `Feedback` ๐ŸŒ๐ŸŽข๐ŸŒšLaurenz
2020-02-03Better Debug/Display and Derives ๐ŸงฝLaurenz
2020-02-03Upgrade to new toddle interface ๐ŸณLaurenz
2020-01-26Document everything ๐Ÿ“œLaurenz
2020-01-24Reorganize modules ๐ŸงฑLaurenz
2020-01-24Non-fatal argument parsing ๐ŸŒ‹Laurenz
2020-01-21Decoupled function parser ๐Ÿ”— [WIP]Laurenz
2020-01-16Powerful parser testing ๐Ÿฑโ€๐Ÿ‘คLaurenz
2020-01-13Refactor expressions and create tuples and objects ๐ŸงฎLaurenz
2020-01-11Re-engineer tokenization ๐ŸšฟLaurenz
2020-01-08Fix font weight bug ๐ŸšงLaurenz
2020-01-06Formatting ๐Ÿ›€Laurenz
2020-01-06Asyncify font loading ๐ŸชLaurenz
2020-01-05Re-enable *, _ and `.Laurenz
2020-01-04Adopt new font loading engine โš™Laurenz
2020-01-01Add basic font family function โœLaurenz
2020-01-01Add word|line|par.spacing functions ๐Ÿ’ถLaurenz
2019-12-15Paper styles and scalable+default margins ๐Ÿ“œLaurenz
2019-12-13More consistent library code and functions ๐ŸŽ„Laurenz
2019-12-13Implement expression kind for Spanned<T> ๐Ÿ‘ฉโ€๐Ÿ’ปLaurenz
2019-12-12Refine and rename layouting types ๐Ÿ›€Laurenz
2019-12-12Tidying up ๐ŸงนLaurenz