Skip to content

Commit

Permalink
Permit pseudocode syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Forgind committed Sep 12, 2023
1 parent 04e0eed commit aed79b4
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions src/grammar.pest
Original file line number Diff line number Diff line change
Expand Up @@ -169,45 +169,45 @@ Escape = @{ "\\" ~ ("\"" | "\\" | "/" | "n" | "r" | "t") }
WHITESPACE = _{ " " | "\t" | NEWLINE }
COMMENT = _{ ("|-o-|" | ":><:" | "<(-.-)>") ~ (!NEWLINE ~ ANY)* }

BeginMain = _{ "Do it!" }
EndMain = _{ "May The Force be with you." }
Print = _{ "The Sacred Jedi Texts!" }
DeclareFunction = _{ "This is where the fun begins." }
FunctionParameters = _{ "Now, that's a name I've not heard in a long time. A long time." }
Void = _{ "It's a trap!" }
Return = _{ "You're all clear, kid. Now let's blow this thing and go home." }
EndFunctionDeclaration = _{ "You cannot escape your destiny." }
AssignVariable = _{ "What a piece of junk!" }
AssignVariableFromFunctionCall = _{ "Many Bothans died to bring us this information." }
EndAssignVariable = _{ "The garbage will do." }
SetValue = _{ "I am your father." }
CallFunction = _{ "I have a bad feeling about this." }
Not = _{ "Always with you it cannot be done." }
Add = _{ "Your lightsabers will make a fine addition to my collection." }
Subtract = _{ "Proceed with the countdown." }
Multiply = _{ "There's too many of them!" }
Divide = _{ "Not to worry, we are still flying half a ship." }
Exponent = _{ "Unlimited power!" }
Modulus = _{ "Never tell me the odds!" }
Equal = _{ "I am a Jedi, like my father before me." }
GreaterThan = _{ "Impressive. Most impressive." }
LessThan = _{ "There's always a bigger fish." }
Or = _{ "There is another." }
And = _{ "As you wish." }
DeclareFloat = _{ "Size matters not." }
DeclareString = _{ "Yoda. You seek Yoda." }
DeclareBool = _{ "I am the Senate!" }
SetInitialValue = _{ "Who, mesa?" }
Noop = _{ "Move along. Move along." }
While = _{ "Here we go again." }
EndWhile = _{ "Let the past die." }
If = _{ "Do, or do not. There is no try." }
Else = _{ "These aren't the droids you're looking for." }
EndIf = _{ "You have failed me for the last time." }
PassArgument = _{ "I'll try spinning, that's a good trick." }
For = _{ "For over a thousand generations." }
ForStart = _{ "Let the Wookiee win." }
EndFor = _{ "It is clear to me now the Republic no longer functions." }
ReadFloat = _{ "Now this is podracing!" }
ReadString = _{ "Looking? Found someone, you have, I would say." }
ReadBoolean = _{ "I hope you know what you're doing." }
BeginMain = _{ "Do it!" | "BeginMain" }
EndMain = _{ "May The Force be with you." | "EndMain" }
Print = _{ "The Sacred Jedi Texts!" | "Print" }
DeclareFunction = _{ "This is where the fun begins." | "DeclareFunction" }
FunctionParameters = _{ "Now, that's a name I've not heard in a long time. A long time." | "FunctionParameters" }
Void = _{ "It's a trap!" | "Void" }
Return = _{ "You're all clear, kid. Now let's blow this thing and go home." | "Return" }
EndFunctionDeclaration = _{ "You cannot escape your destiny." | "EndFunctionDeclaration" }
AssignVariable = _{ "What a piece of junk!" | "AssignVariable" }
AssignVariableFromFunctionCall = _{ "Many Bothans died to bring us this information." | "AssignVariableFromFunctionCall" }
EndAssignVariable = _{ "The garbage will do." | "EndAssignVariable" }
SetValue = _{ "I am your father." | "SetValue" }
CallFunction = _{ "I have a bad feeling about this." | "CallFunction" }
Not = _{ "Always with you it cannot be done." | "Not" }
Add = _{ "Your lightsabers will make a fine addition to my collection." | "Add" }
Subtract = _{ "Proceed with the countdown." | "Subtract" }
Multiply = _{ "There's too many of them!" | "Multiply" }
Divide = _{ "Not to worry, we are still flying half a ship." | "Divide" }
Exponent = _{ "Unlimited power!" | "Exponent" }
Modulus = _{ "Never tell me the odds!" | "Modulus" }
Equal = _{ "I am a Jedi, like my father before me." | "Equal" }
GreaterThan = _{ "Impressive. Most impressive." | "GreaterThan" }
LessThan = _{ "There's always a bigger fish." | "LessThan" }
Or = _{ "There is another." | "Or" }
And = _{ "As you wish." | "And" }
DeclareFloat = _{ "Size matters not." | "DeclareFloat" }
DeclareString = _{ "Yoda. You seek Yoda." | "DeclareString" }
DeclareBool = _{ "I am the Senate!" | "DeclareBool" }
SetInitialValue = _{ "Who, mesa?" | "SetInitialValue" }
Noop = _{ "Move along. Move along." | "Noop" }
While = _{ "Here we go again." | "While" }
EndWhile = _{ "Let the past die." | "EndWhile" }
If = _{ "Do, or do not. There is no try." | "If" }
Else = _{ "These aren't the droids you're looking for." | "Else" }
EndIf = _{ "You have failed me for the last time." | "EndIf" }
PassArgument = _{ "I'll try spinning, that's a good trick." | "PassArgument" }
For = _{ "For over a thousand generations." | "For" }
ForStart = _{ "Let the Wookiee win." | "ForStart" }
EndFor = _{ "It is clear to me now the Republic no longer functions." | "EndFor" }
ReadFloat = _{ "Now this is podracing!" | "ReadFloat" }
ReadString = _{ "Looking? Found someone, you have, I would say." | "ReadString" }
ReadBoolean = _{ "I hope you know what you're doing." | "ReadBoolean" }

0 comments on commit aed79b4

Please sign in to comment.