cairo-lang-parser 2.9.3

Cairo parser.
Documentation
//! > Missing semicolon.

//! > test_runner_name
get_diagnostics

//! > cairo_code
mod my_mod
fn foo() {}

//! > expected_diagnostics
error: Missing token TerminalSemicolon.
 --> dummy_file.cairo:1:11
mod my_mod
          ^

//! > ==========================================================================

//! > Missing lbrace.

//! > test_runner_name
get_diagnostics

//! > cairo_code
mod my_mod }

//! > expected_diagnostics
error: Missing token TerminalSemicolon.
 --> dummy_file.cairo:1:11
mod my_mod }
          ^

error: Skipped tokens. Expected: Const/Enum/ExternFunction/ExternType/Function/Impl/InlineMacro/Module/Struct/Trait/TypeAlias/Use or an attribute.
 --> dummy_file.cairo:1:12
mod my_mod }
           ^

//! > ==========================================================================

//! > Missing rbrace.

//! > test_runner_name
get_diagnostics

//! > cairo_code
mod my_mod {
fn foo() {}

//! > expected_diagnostics
error: Missing token TerminalRBrace.
 --> dummy_file.cairo:2:12
fn foo() {}
           ^