From dfe0349d1a8c5561b0282fbf8c96605501adf7ee Mon Sep 17 00:00:00 2001 From: h1alexbel Date: Wed, 16 Oct 2024 14:59:19 +0300 Subject: [PATCH] feat(#24): order --- src/program.pest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/program.pest b/src/program.pest index 99942a0..ae9115f 100644 --- a/src/program.pest +++ b/src/program.pest @@ -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+ } @@ -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 = {"#"}