From 37a631a6be7db212b181274b2c26b83af0ac5760 Mon Sep 17 00:00:00 2001 From: the lemons Date: Sat, 19 Feb 2022 20:17:18 -0600 Subject: unary operator precedence --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 9aadaaf..6ba05a0 100644 --- a/readme.md +++ b/readme.md @@ -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 `\"`. -- cgit v1.2.3