diff --git a/data/fibanocci.md b/data/fibanocci.md index 7f26372..6232855 100644 --- a/data/fibanocci.md +++ b/data/fibanocci.md @@ -7,6 +7,4 @@ value_1 equals fibonacci of temp_1 value_2 equals fibonacci of temp_2 value equals addition of value1 with value2 move-on -answer equals value - -fyi greater : is-greater-than \ No newline at end of file +answer equals value \ No newline at end of file diff --git a/data/tower-of-hanoi.md b/data/tower-of-hanoi.md index fb64d6e..6a6e6b2 100644 --- a/data/tower-of-hanoi.md +++ b/data/tower-of-hanoi.md @@ -5,6 +5,4 @@ tower-of-hanoi of disks1 with source with medium with target show-value-of "Move disk " with disks with " from rod " with source with " with rod " with target tower-of-hanoi of disks1 with medium with target with source move-on - -fyi what to return no answer is expected -fyi show-value-of multiple checks get confirmationx \ No newline at end of file +answer equals no-answer \ No newline at end of file diff --git a/doc/grammar.md b/doc/grammar.md index 7414cf0..46fa033 100644 --- a/doc/grammar.md +++ b/doc/grammar.md @@ -1,6 +1,8 @@ // Initial Definitions `identifier` := \w+(-\w+)* `identifier_answer` := answer +`identifier_answer` := no-answer + `block` := `assignment` \n `block` := `assignment` \n `block` @@ -66,4 +68,10 @@ `function_call` := `identifier` of `argument_list` // Other Features: Comments -`comment` := fyi `string` \n \ No newline at end of file +`comment` := fyi `string` \n + +// Comparison Operators +`greater_than` := `expression` is-greater-than `expression` +`less_than` := `expression` is-less-than `expression` +`equal-to` := `expression` is-equal-to `expression` +