public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
* [PATCH olang] docs: spec: add the if statement to the spec page
@ 2024-09-07 23:47 Carlos Maniero
  2024-09-08  1:50 ` Johnny Richard
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos Maniero @ 2024-09-07 23:47 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel; +Cc: Carlos Maniero

Signed-off-by: Carlos Maniero <carlos@maniero.me>
---
 docs/pages/language-specification.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/pages/language-specification.md b/docs/pages/language-specification.md
index 747bb53..1a70810 100644
--- a/docs/pages/language-specification.md
+++ b/docs/pages/language-specification.md
@@ -40,7 +40,8 @@ language.
 <return-type>         ::= <type>
 <function-body>       ::= <block>
 <block>               ::= '{' <ows> <statement> <ows> (<end-of-statement> <ows> <statement> <ows>)* <end-of-statement>? <ows> '}'
-<statement>           ::= <common-statement> | <return-statement>
+<statement>           ::= <common-statement> | <if-statement> | <return-statement>
+<if-statement>        ::= 'if' <ws> <expression> <ows> <block>
 <return-statement>    ::= 'return' <ws> <expression>
 
 (* Statements *)

base-commit: ecee8ee59fb166ba751c35723abae47d94640906
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH olang] docs: spec: add the if statement to the spec page
  2024-09-07 23:47 [PATCH olang] docs: spec: add the if statement to the spec page Carlos Maniero
@ 2024-09-08  1:50 ` Johnny Richard
  0 siblings, 0 replies; 2+ messages in thread
From: Johnny Richard @ 2024-09-08  1:50 UTC (permalink / raw)
  To: Carlos Maniero; +Cc: ~johnnyrichard/olang-devel

Thanks for your contribution. Patch applied!

Build: https://builds.sr.ht/~johnnyrichard/job/1322288

To git.sr.ht:~johnnyrichard/olang
   ecee8ee..705f54e  main -> main

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-07 23:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-07 23:47 [PATCH olang] docs: spec: add the if statement to the spec page Carlos Maniero
2024-09-08  1:50 ` Johnny Richard

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