skullbrain-parser 0.1.0

Parses skullbrain tokens into a concrete syntax tree (CST).
Documentation
---
source: skullbrain-parser/src/test.rs
expression: display_target
info: "lock in bussin \r\n    gyatt ident is aura skibidi 42\r\n    goon bussin \r\n        yeet error\r\n    no cap\r\nno cap put the fries in the bag bro error is chad bussin     \r\n    yeet error \r\nno cap \r\n    "
input_file: skullbrain-parser/src/inputs/try_catch/try_catch4.skull
---
TryCatch@0..196
  Try@0..109
    Keyword@0..7 "lock in"
    Trivia@7..8 " "
    DelimitedRange@8..109
      OpenBrace@8..14 "bussin"
      Trivia@14..21 " \r\n    "
      VariableDeclaration@21..57
        MutableVariableKeyword@21..26 "gyatt"
        Trivia@26..27 " "
        Parameter@27..40
          Ident@27..32 "ident"
          Trivia@32..33 " "
          Colon@33..35 "is"
          Trivia@35..36 " "
          Type@36..40 "aura"
        Trivia@40..41 " "
        Assignment@41..48 "skibidi"
        Trivia@48..49 " "
        Literal@49..51 "42"
        Trivia@51..57 "\r\n    "
      WhileLoop@57..101
        Keyword@57..61 "goon"
        Trivia@61..62 " "
        Condition@62..62
          DelimitedRange@62..62
        Body@62..101
          DelimitedRange@62..101
            OpenBrace@62..68 "bussin"
            Trivia@68..79 " \r\n        "
            ThrowError@79..95
              Keyword@79..83 "yeet"
              Trivia@83..84 " "
              Ident@84..89 "error"
              Trivia@89..95 "\r\n    "
            CloseBrace@95..101 "no cap"
      Trivia@101..103 "\r\n"
      CloseBrace@103..109 "no cap"
  Trivia@109..110 " "
  Catch@110..196
    Keyword@110..138 "put the fries in the  ..."
    Trivia@138..139 " "
    Parameter@139..152
      Ident@139..144 "error"
      Trivia@144..145 " "
      Colon@145..147 "is"
      Trivia@147..148 " "
      Type@148..152 "chad"
    Trivia@152..153 " "
    DelimitedRange@153..189
      OpenBrace@153..159 "bussin"
      Trivia@159..170 "     \r\n    "
      ThrowError@170..183
        Keyword@170..174 "yeet"
        Trivia@174..175 " "
        Ident@175..180 "error"
        Trivia@180..183 " \r\n"
      CloseBrace@183..189 "no cap"
    Trivia@189..196 " \r\n    "


Error: missing `⁨uwu⁩` and `⁨owo⁩` delimiters
   ,-[ try_catch4.skull:3:10 ]
   |
 3 |     goon bussin
   |          |^^^^^| 
   |          `------- insert `⁨uwu⁩` at the indicated position
   |                | 
   |                `- insert `⁨owo⁩` at the indicated position
   | 
   | Help: wrap the span in `⁨uwu⁩` and `⁨owo⁩` delimiters
---'