From: Johnny Richard <johnny@johnnyrichard.com>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Johnny Richard <johnny@johnnyrichard.com>
Subject: [PATCH olang v1 0/2] parser: implement else branching
Date: Tue, 10 Sep 2024 01:54:57 +0200 [thread overview]
Message-ID: <20240909235611.84414-1-johnny@johnnyrichard.com> (raw)
We still need to implement the codegen to get it fully functional.
Johnny Richard (2):
lexer: add support to else keyword token
parser: add support to else branch
src/ast.c | 3 +-
src/ast.h | 3 +-
src/lexer.c | 5 +++
src/lexer.h | 1 +
src/parser.c | 40 ++++++++++++++----
src/pretty_print_ast.c | 5 +++
.../integration/tests/0023_else_statement.ol | 42 +++++++++++++++++++
7 files changed, 90 insertions(+), 9 deletions(-)
create mode 100644 tests/integration/tests/0023_else_statement.ol
base-commit: 705f54e830e50d0c069cf1e2c76bda4204bd9dcc
--
2.46.0
next reply other threads:[~2024-09-09 21:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-09 23:54 Johnny Richard [this message]
2024-09-09 22:06 ` Carlos Maniero
2024-09-09 23:54 ` [PATCH olang v1 1/2] lexer: add support to else keyword token Johnny Richard
2024-09-09 23:54 ` [PATCH olang v1 2/2] parser: add support to else branch Johnny Richard
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=20240909235611.84414-1-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