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: "edgin check uwu condition owo bussin \r\n    edgin check uwu condition bussin\r\n\r\n    only in ohio edgin check bussin \r\n        gyatt ident skibidi 42\r\n    no cap\r\nno cap only in ohio bussin \r\n    \r\nno cap "
input_file: skullbrain-parser/src/inputs/if_else/if_else4.skull
---
IfElse@0..203
  If@0..167
    Keyword@0..11 "edgin check"
    Trivia@11..12 " "
    Condition@12..29
      DelimitedRange@12..29
        OpenParen@12..15 "uwu"
        Trivia@15..16 " "
        Ident@16..25 "condition"
        Trivia@25..26 " "
        CloseParen@26..29 "owo"
    Trivia@29..30 " "
    Body@30..167
      DelimitedRange@30..167
        OpenBrace@30..36 "bussin"
        Trivia@36..43 " \r\n    "
        IfElse@43..161
          If@43..83
            Keyword@43..54 "edgin check"
            Trivia@54..55 " "
            Condition@55..69
              DelimitedRange@55..69
                OpenParen@55..58 "uwu"
                Trivia@58..59 " "
                Ident@59..68 "condition"
                Trivia@68..69 " "
            Body@69..83
              DelimitedRange@69..83
                OpenBrace@69..75 "bussin"
                Trivia@75..83 "\r\n\r\n    "
          Else@83..159
            Keyword@83..95 "only in ohio"
            Trivia@95..96 " "
            Keyword@96..107 "edgin check"
            Trivia@107..108 " "
            Condition@108..108
              DelimitedRange@108..108
            Body@108..159
              DelimitedRange@108..159
                OpenBrace@108..114 "bussin"
                Trivia@114..125 " \r\n        "
                VariableDeclaration@125..153
                  MutableVariableKeyword@125..130 "gyatt"
                  Trivia@130..131 " "
                  Ident@131..136 "ident"
                  Trivia@136..137 " "
                  Assignment@137..144 "skibidi"
                  Trivia@144..145 " "
                  Literal@145..147 "42"
                  Trivia@147..153 "\r\n    "
                CloseBrace@153..159 "no cap"
          Trivia@159..161 "\r\n"
        CloseBrace@161..167 "no cap"
  Trivia@167..168 " "
  Else@168..202
    Keyword@168..180 "only in ohio"
    Trivia@180..181 " "
    Condition@181..181
      DelimitedRange@181..181
    Body@181..202
      DelimitedRange@181..202
        OpenBrace@181..187 "bussin"
        Trivia@187..196 " \r\n    \r\n"
        CloseBrace@196..202 "no cap"
  Trivia@202..203 " "


Error: expected `⁨owo⁩`
   ,-[ if_else4.skull:2:31 ]
   |
 2 |     edgin check uwu condition bussin
   |                               |^^^^^  
   |                               `------- insert here
   | 
   | Help: insert `⁨owo⁩` before the indicated position
---'
Error: expected `⁨no cap⁩`
   ,-[ if_else4.skull:4:5 ]
   |
 4 |     only in ohio edgin check bussin
   |     |^^^^^^^^^^^  
   |     `------------- insert here
   | 
   | Help: insert `⁨no cap⁩` before the indicated position
---'
Error: missing `⁨uwu⁩` and `⁨owo⁩` delimiters
   ,-[ if_else4.skull:4:30 ]
   |
 4 |     only in ohio edgin check bussin
   |                              |^^^^^| 
   |                              `------- insert `⁨uwu⁩` at the indicated position
   |                                    | 
   |                                    `- insert `⁨owo⁩` at the indicated position
   | 
   | Help: wrap the span in `⁨uwu⁩` and `⁨owo⁩` delimiters
---'
Error: missing `⁨uwu⁩` and `⁨owo⁩` delimiters
   ,-[ if_else4.skull:7:21 ]
   |
 7 | no cap only in ohio bussin
   |                     |^^^^^| 
   |                     `------- insert `⁨uwu⁩` at the indicated position
   |                           | 
   |                           `- insert `⁨owo⁩` at the indicated position
   | 
   | Help: wrap the span in `⁨uwu⁩` and `⁨owo⁩` delimiters
---'