diff options
author | the lemons <citrons@mondecitronne.com> | 2022-02-19 20:17:18 -0600 |
---|---|---|
committer | the lemons <citrons@mondecitronne.com> | 2022-02-19 20:17:18 -0600 |
commit | 37a631a6be7db212b181274b2c26b83af0ac5760 (patch) | |
tree | 6f5939267e4fb9762bdece874eed5ed12c29ab1a | |
parent | f3d150966146ec5d0c40eabe88de5344cf6ef787 (diff) |
unary operator precedence
-rw-r--r-- | readme.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ a CR "document" is a sequence of ASCII characters. characters outside of the ran ## syntax a CR document consists of any number of sentences. a sentence in CR consists of a single expression. each expression in CR evaluates to a noun. -an expression consists of a literal noun (expressed as a sequence of alphebetic characters or if it is a number, numerical characters), a binary operation, or a unary operation. unary operators prefix the expression they operate upon. binary operators appear between the expressions they operate upon and are right-associative. parenthesis can be used to explicitly group expressions. +an expression consists of a literal noun (expressed as a sequence of alphebetic characters or if it is a number, numerical characters), a binary operation, or a unary operation. unary operators prefix the expression they operate upon and are higher precedence than binary operators. binary operators appear between the expressions they operate upon and are right-associative. parenthesis can be used to explicitly group expressions. "quotations" are a special type of literal noun which refer to statements or sequences of text themselves. there are two types of quotations. a bracket quotation is surrounded in square brackets, and must contain within it a syntactically valid CR document. a normal quotation is enclosed in double quotes and may contain anything of any syntactic validity or language. however, a normal quotation must be properly escaped. the only escape sequences available in a normal quotation are `\\` and `\"`. |