Skip to content

Commit

Permalink
Minor styling of grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp authored May 15, 2024
1 parent 031e86a commit 59f52a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numbat/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
//! unicode_power ::= call ( "⁻" ? ( "¹" | "²" | "³" | "⁴" | "⁵" | "⁶" | "⁷" | "⁸" | "⁹" ) ) ?
//! call ::= primary ( ( "(" arguments? ")" ) | "." identifier ) *
//! arguments ::= expression ( "," expression ) *
//! primary ::= boolean | string | hex_number | oct_number | bin_number | number | identifier ( struct_expr ? ) | "(" expression ")" | struct_expr
//! primary ::= boolean | string | hex_number | oct_number | bin_number | number | identifier ( struct_expr ? ) | struct_expr | "(" expression ")"
//! struct_expr ::= "{" ( identifier ":" type_annotation "," )* ( identifier ":" expression "," ? ) ? "}"
//!
//! number ::= [0-9][0-9_]*("." ([0-9][0-9_]*)?)?([eE][+-]?[0-9][0-9_]*)?
Expand Down

0 comments on commit 59f52a1

Please sign in to comment.