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: "vibe bussin\r\n    bop print uwu owo bussin \r\n        yolo skibidi people\r\n    no cap\r\n    bop to_string uwu owo bustin chad\r\nno cap"
input_file: skullbrain-parser/src/inputs/trait/delc2.skull
---
Trait@0..130
  Keyword@0..4 "vibe"
  Trivia@4..5 " "
  DelimitedRange@5..130
    OpenBrace@5..11 "bussin"
    Trivia@11..17 "\r\n    "
    Function@17..83
      Keyword@17..20 "bop"
      Trivia@20..21 " "
      Ident@21..26 "print"
      Trivia@26..27 " "
      FunctionSignature@27..35
        DelimitedRange@27..34
          OpenParen@27..30 "uwu"
          Trivia@30..31 " "
          CloseParen@31..34 "owo"
        Trivia@34..35 " "
      DelimitedRange@35..83
        OpenBrace@35..41 "bussin"
        Trivia@41..52 " \r\n        "
        Operator@52..77
          Ident@52..56 "yolo"
          Trivia@56..57 " "
          Assignment@57..64 "skibidi"
          Trivia@64..65 " "
          Rhs@65..77
            Ident@65..71 "people"
            Trivia@71..77 "\r\n    "
        CloseBrace@77..83 "no cap"
    Trivia@83..89 "\r\n    "
    Function@89..124
      Keyword@89..92 "bop"
      Trivia@92..93 " "
      Ident@93..102 "to_string"
      Trivia@102..103 " "
      FunctionSignature@103..122
        DelimitedRange@103..110
          OpenParen@103..106 "uwu"
          Trivia@106..107 " "
          CloseParen@107..110 "owo"
        Trivia@110..111 " "
        Arrow@111..117 "bustin"
        Trivia@117..118 " "
        Type@118..122 "chad"
      Trivia@122..124 "\r\n"
    CloseBrace@124..130 "no cap"


Error: expected `⁨trait name⁩`
   ,-[ delc2.skull:1:6 ]
   |
 1 | vibe bussin
   |      |^^^^^  
   |      `------- expected ⁨trait name⁩ before this position
---'
Error: expected `⁨.⁩`
   ,-[ delc2.skull:6:1 ]
   |
 6 | no cap
   | |^^^^^  
   | `------- insert here
   | 
   | Help: insert `⁨.⁩` before the indicated position
---'