summaryrefslogtreecommitdiff
path: root/src/syntax/tokens.rs
AgeCommit message (Collapse)Author
2023-01-14Reorganize syntax moduleLaurenz
2023-01-03New import syntaxLaurenz
2022-12-31Merge `MarkupNode` and `MathNode` into `Expr`Laurenz
2022-12-14Move highlighting into new IDE moduleLaurenz
2022-12-06Math shorthandsLaurenz
2022-12-06More math syntaxLaurenz
2022-12-05Symbol notationLaurenz
2022-12-02Multi-part numbering patternsLaurenz
2022-11-26Dynamic labelsLaurenz
2022-11-22Rename two syntax typesLaurenz
2022-11-19Rename `RawKind` to `RawFields`Laurenz
2022-11-07Show it!Laurenz
- New show rule syntax - Set if syntax - Removed wrap syntax
2022-11-04Style changesLaurenz
2022-11-03Split cratesLaurenz
2022-10-28Refactor `geom` moduleLaurenz
2022-10-17Merge some modulesLaurenz
2020-09-30Reorganize syntax types into two modules ๐Ÿ“ฆLaurenz
2020-09-01Deduplicate and flexibilize code token & node building ๐ŸงบLaurenz
2020-09-01Formatting ๐ŸŒฟLaurenz
2020-09-01Add section headings ๐Ÿ‘จโ€๐ŸฆฒMartin Haug
Co-authored-by: Laurenz Mรคdje <laurmaedje@gmail.com>
2020-08-31Move Nbsp logic to tokenizer ๐Ÿš›Martin Haug
2020-08-31Capability to escape the tilde symbol ๐Ÿ’จMartin Haug
2020-08-30Format everything with rustfmt! ๐Ÿ’šLaurenz
2020-08-30Make some code easier for rustfmt ๐ŸฆLaurenz
2020-08-30Slight simplifications ๐ŸƒLaurenz
2020-08-30Also provide escapes for strings ๐Ÿ—’Martin Haug
2020-08-30Added Unicode Escaping for body text ๐Ÿ‘™Martin Haug
2020-08-29Newlines are complicated, y'all ๐Ÿ˜ฑMartin Haug
Co-authored-by: laurmaedje@outlook.de <laurmaedje@outlook.de>
2020-08-29Added code blocks ๐ŸšŸMartin Haug
2020-08-27Do as Dolores says โšกLaurenz
2020-08-27Code review-tastic changes ๐ŸฆชMartin Haug
2020-08-27Add Multi-Invokation ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘งMartin Haug
2020-08-19Remove some obsolete stuff โŒLaurenz
2020-08-19Make compute functions possible ๐Ÿ’ปLaurenz
Ships with the amazing new `rgb` function!
2020-08-17Parse braced expressions and bracketed calls in headers ๐Ÿ—ณLaurenz
- Refactors the tokenizer to be lazy: It does not emit pre-parsed function tokens, but instead allows it's mode to be changed. The modes are tracked on a stack to allow nested compute/typesetting (pop/push). - Introduces delimited groups into the parser, which make it easy to parse delimited expressions without handling the delimiters in the parsing code for the group's content. A group is started with `start_group`. When reaching the group's end (matching delimiter) the eat and peek methods will simply return `None` instead of the delimiter, stopping the content parser and bubbling up the call stack until `end_group` is called to clear up the situation.
2020-08-16Remove tuples and objects in favor of tables ๐Ÿ›ขLaurenz
This refactores the parser tests to make them more concise and flexible with regards to spans.
2020-08-13Remove redundant `Expr` prefix from tokens ๐ŸงฝLaurenz
2020-08-03Formatting, documentation and small improvements ๐ŸงฝLaurenz
2020-08-02Refactor model into tree ๐Ÿ›’Laurenz
2020-08-02Refactor argument parsing ๐Ÿ”ฌLaurenz
2020-08-01Raw lengths ๐ŸšฒLaurenz
Replace unitless length with raw f64 and introduce length type with unit.
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-26Streamline parser and tokenizer test code โœˆLaurenz
2020-07-26Better distinguish function names in tokenizer from parser โœ‚Laurenz
2020-07-18Some code and styling improvements ๐ŸŽจLaurenz
2020-07-18Parsing mathematical expressions :heavy_plus_sign:Martin Haug
2020-07-15Use FromStr trait and formatting โœจLaurenz
2020-07-15Healed field for RgbaColors, CodeRev feedback ๐ŸคMartin Haug
2020-07-14Add named tuples and hex color tokensMartin Haug