From: Johnny Richard <johnny@johnnyrichard.com>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Johnny Richard <johnny@johnnyrichard.com>
Subject: [PATCH olang v1 1/3] doc: add unary expression to language spec
Date: Wed, 9 Oct 2024 23:18:27 +0200 [thread overview]
Message-ID: <20241009213425.412949-2-johnny@johnnyrichard.com> (raw)
In-Reply-To: <20241009213425.412949-1-johnny@johnnyrichard.com>
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
---
docs/info/specification.texi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/docs/info/specification.texi b/docs/info/specification.texi
index 6caaac8..a466331 100644
--- a/docs/info/specification.texi
+++ b/docs/info/specification.texi
@@ -78,8 +78,17 @@ language.
<primary-expression> ::= <integer-literal>
| <variable-name>
| <function-call>
+ | <unary-expression>
| '(' <ows> <expression> <ows> ')'
+<unary-expression> ::= <unary-operator> <ows> <primary-expression>
+<unary-operator> ::= &
+ | *
+ | +
+ | -
+ | ~
+ | !
+
(* Identifiers *)
<type> ::= 'u32'
<identifier> ::= (<alpha> | '_') (<alpha> | <digit> | '_')*
--
2.46.0
next prev parent reply other threads:[~2024-10-09 19:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-09 21:18 [PATCH olang v1 0/3] implement unary operator for bitwise not Johnny Richard
2024-10-09 21:18 ` Johnny Richard [this message]
2024-10-09 21:18 ` [PATCH olang v1 2/3] lexer: add tilde token support Johnny Richard
2024-10-09 21:18 ` [PATCH olang v1 3/3] parser: codegen(x86_64): add bitwise not unary op support Johnny Richard
2024-10-09 19:35 ` [olang/patches/.build.yml] build success builds.sr.ht
2024-10-09 23:00 ` [PATCH olang v1 0/3] implement unary operator for bitwise not Carlos Maniero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241009213425.412949-2-johnny@johnnyrichard.com \
--to=johnny@johnnyrichard.com \
--cc=~johnnyrichard/olang-devel@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.johnnyrichard.com/olang.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox