summaryrefslogtreecommitdiff
path: root/src/pretty.rs
AgeCommit message (Collapse)Author
2021-08-14Separate type for string valuesLaurenz
2021-08-13Optimize memory sizesLaurenz
2021-08-13Argument collection and spreadingLaurenz
2021-08-12Named arguments for user defined functionsLaurenz
2021-08-12Array and dictionary indexingLaurenz
2021-08-09New source loading architectureLaurenz
2021-08-01Pretty-printed diagnostics with tracebackLaurenz
2021-07-30Fatal errorsLaurenz
- Makes errors fatal, so that a phase is only reached when all previous phases were error-free - Parsing still recovers and can produce multiple errors - Evaluation fails fast and can thus produce only a single error (except for parse errors due to an import) - The single error that could occur during execution is removed for now - Removes Value::Error variant
2021-07-11Simpler castingLaurenz
2021-07-10Reference-count complex valuesLaurenz
Rename some nodes types
2021-07-10Eco string ๐ŸŒฑLaurenz
2021-07-08Replace using with fromLaurenz
2021-07-08Switch to = for headings once againLaurenz
2021-06-30Remove color literals (#39)Laurenz
2021-06-30No more collisions between syntax::Tree and layout::TreeLaurenz
2021-06-26With expressionsLaurenz
2021-06-11Basic enumsLaurenz
2021-06-09Tidy upLaurenz
2021-06-09Add a grid layouterMartin Haug
2021-06-09Introduce `fr`sMartin Haug
2021-06-09Remove template pretty printingLaurenz
Was buggy and pretty useless anyway since it couldn't peek into function templates.
2021-06-09Lists with indent-based parsingLaurenz
- Unordered lists with indent-based parsing and basic layout using stacks - Headings are now also indent based - Removes syntax functions since they will be superseded by select & transform
2021-06-07Switch back to hashtags for headingsLaurenz
2021-05-31Parse import and include expressionsMartin Haug
Co-Authored-By: Laurenz <laurmaedje@gmail.com>
2021-05-28Refactored loading and cache architectureLaurenz
2021-05-26Add hash impls for all nodesMartin Haug
This prepares the incremental PR. Co-Authored-By: Laurenz <laurmaedje@gmail.com>
2021-03-21Syntax functions ๐Ÿš€Laurenz
This adds overridable functions that markup desugars into. Specifically: - \ desugars into linebreak - Two newlines desugar into parbreak - * desugars into strong - _ desugars into emph - = .. desugars into heading - `..` desugars into raw
2021-03-19Scheduled maintenance ๐Ÿ”จLaurenz
- New naming scheme - TextNode instead of NodeText - CallExpr instead of ExprCall - ... - Less glob imports - Removes Value::Args variant - Removes prelude - Renames Layouted to Fragment - Moves font into env - Moves shaping into layout - Moves frame into separate module
2021-03-03Callee expressions ๐Ÿ…Laurenz
2021-03-03Closures and function definitions ๐Ÿš€Laurenz
Supports: - Closure syntax: `(x, y) => z` - Shorthand for a single argument: `x => y` - Function syntax: `let f(x) = y` - Capturing of variables from the environment - Error messages for too few / many passed arguments Does not support: - Named arguments - Variadic arguments with `..`
2021-03-02Remove dependencies on itoa and ryu โฌ‡๏ธLaurenz
2021-02-24While loops ๐Ÿ”Laurenz
2021-02-24Index + value iteration for arrays ๐ŸฆšLaurenz
2021-02-18Refresh parser ๐ŸŒŠLaurenz
2021-02-12Rename any template to func template โœLaurenz
2021-02-12Make templates and strings summable ๐ŸฅชLaurenz
2021-02-12Cleaning ๐ŸงนLaurenz
2021-02-11Move span directly into diagnostics ๐ŸššLaurenz
2021-02-11Move all pretty printing into one module and pretty print values ๐Ÿฆ‹Laurenz
2021-02-09Add arguments value ๐Ÿ“Laurenz
2021-02-03Tidy up raw blocks ๐ŸงนLaurenz
- Better trimming (only trim at the end if necessary) - Fixed block-level layouting - Improved pretty printing - Flip inline variable to block - Flip inline variable to display for math formulas
2021-01-13Some minor improvements โ™ปLaurenz
2021-01-06Inline literal enum into expression enum ๐Ÿ”€Laurenz
2021-01-06Pretty printing ๐Ÿฆ‹Laurenz
- Syntax tree and value pretty printing - Better value evaluation (top-level strings and content are evaluated plainly, everything else is pretty printed)