Skip to content

Commit

Permalink
feat(#24): order
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Oct 16, 2024
1 parent 5a77f85 commit dfe0349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/program.pest
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

/// Program.
program = { comment* ~ (me ~ NEWLINE) ~ comment* ~ (command ~ NEWLINE)* ~ comment* }
comment = { COMMENT_HASH ~ (WHITE_SPACE ~ ctext)* ~ NEWLINE? }
ctext = { (LOWERCASE_LETTER | UPPERCASE_LETTER | PUNCTUATION)* }
command = { CREATION ~ object }
object = { oid ~ WHITE_SPACE ~ (attributes ~ WHITE_SPACE)? ~ (new | application)? }
oid = { char+ }
Expand All @@ -34,11 +32,13 @@ reference = { char+ }
me = { ME ~ SEMICOLON ~ WHITE_SPACE ~ login }
login = { "@" ~ char+ }
char = { LOWERCASE_LETTER }
comment = { COMMENT_HASH ~ (WHITE_SPACE ~ ctext)* ~ NEWLINE? }
ctext = { (LOWERCASE_LETTER | UPPERCASE_LETTER | PUNCTUATION)* }

COMMENT_HASH = {"#"}
ASSIGNMENT = {">"}
CREATION = {"+"}
APPLICATION = {"->"}
ME = {"me"}
AT = {"/"}
SEMICOLON = {":"}
COMMENT_HASH = {"#"}

0 comments on commit dfe0349

Please sign in to comment.