From: Johnny Richard <johnny@johnnyrichard.com>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Johnny Richard <johnny@johnnyrichard.com>
Subject: [PATCH olang v3 0/3] fe: add binary operation expr support
Date: Mon, 18 Mar 2024 09:39:50 +0100 [thread overview]
Message-ID: <20240318084254.142417-1-johnny@johnnyrichard.com> (raw)
This patchset implements the frontend for parsing binary operation
expressions. The backend implementation is not implemented on this
patch series.
Johnny Richard (3):
lexer: add tokenize support to binary op tokens
ast: create binary operation ast node
parser: add all binary operation expressions
examples/expression.ol | 3 +
src/ast.c | 14 +++
src/ast.h | 34 ++++++
src/lexer.c | 190 ++++++++++++++++++++++++++++++-
src/lexer.h | 29 +++++
src/parser.c | 209 +++++++++++++++++++++++++++++++---
tests/integration/cli_test.c | 56 ++++++++-
tests/integration/proc_exec.h | 3 +-
8 files changed, 516 insertions(+), 22 deletions(-)
create mode 100644 examples/expression.ol
base-commit: b34e6e1e8dde2852c2d1b050b6ac882605959180
--
2.44.0
next reply other threads:[~2024-03-18 7:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 8:39 Johnny Richard [this message]
2024-03-18 8:39 ` [PATCH olang v3 1/3] lexer: add tokenize support to binary op tokens Johnny Richard
2024-03-18 8:39 ` [PATCH olang v3 2/3] ast: create binary operation ast node Johnny Richard
2024-03-18 8:39 ` [PATCH olang v3 3/3] parser: add all binary operation expressions Johnny Richard
2024-03-18 7:43 ` [olang/patches/.build.yml] build success builds.sr.ht
2024-03-18 21:37 ` [PATCH olang v3 0/3] fe: add binary operation expr support 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=20240318084254.142417-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