Skip to content

Commit

Permalink
Update vyxal.grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxal authored Jan 14, 2025
1 parent dfa7314 commit 9387ca6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/scripts/language/vyxal.grammar
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

@top Program { Statement+ }
@skip { Space }
Statement { Digraph | SyntaxTrigraph | StructureOpen | StructureClose | ListStuff | ModifierChar | VariableThing | Number | AnyString | Branch | ContextIndex | Comment | Element }
Statement { Digraph | SyntaxTrigraph | StructureOpen | StructureClose | ListStuff | Modifier | VariableThing | Number | AnyString | Branch | ContextIndex | Comment | Element }
Number { NumberDecimal | TwoCharNumber }
NumberDecimal {
NumberPart |
Expand All @@ -14,23 +14,23 @@ AnyString {
}
@tokens {
Space { @whitespace+ }
ModifierChar {$[⑴∦⎂⎇▦⑶¨~⁜ᖶᛞ⑵⟒¿∺⩔⑷Ẅ∥]}
Modifier {$[⑴∦⎂⎇▦⑶¨~⑵⟒¿∺⩔⑷Ẅ∥]}
Comment {"##" (![
])*}
Digraph { $[∆øÞk] _ | "#" ![[\]$!=#>@{:] }
NumberPart { "0" | ($[1-9] $[0-9]*) }
SyntaxTrigraph { "#:" ![[] }
Branch {"|"}
ListStuff { "#[" | "#]"}
StructureOpen {"" | "{" | "⎄" | "(" | "ƛ" | "#{" | "λ" | "Ω" | "⎊" | "µ" | "["}
StructureOpen {"ξ" | "⎄" | "(" | "ƛ" | "#{" | "λ" | "⍾" | "{" | "ʎ" | "⎊" | "µ" | "["}
StructureClose {"}" | "]" | "⎋" | "⍟" | ")"}
String {'"' (!["„”“\\] | "\\" _)* $["„”“]}
SingleCharString { "'" _ }
TwoCharString { "Ꮬ" _ _ }
TwoCharNumber { "Ꮠ" _ _ }
VariableThing { "#" ($[=$>]|":[") $[A-Z] $[a-zA-Z0-9_]* }
ContextIndex { "#¤" @digit }
Element { ![~₳Ωλƛµ⎋⍟⎊⎄⩔Ẅ⎇¿∥∦∺⁜⑴⑵⑶⑷⎂⟒ᛞ▦¨"#'().0123456789[\]k{|}ᏜᏐÞ∆ø„”“] }
Element { ![ʎλƛµξ⍾⎋⍟⎊⎄⩔Ẅ⎇¿∥∦∺⁜⑴⑵⑶⑷⎂⟒ᛞ▦¨"#'().0123456789[\]k{|}~ᏜᏐÞ∆ø„”“] }
@precedence { Space, Element }
}

0 comments on commit 9387ca6

Please sign in to comment.