From: Johnny Richard <johnny@johnnyrichard.com>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Johnny Richard <johnny@johnnyrichard.com>
Subject: [PATCH olang v2 0/3] frontend: add binary operation expr support
Date: Sun, 17 Mar 2024 22:29:21 +0100 [thread overview]
Message-ID: <20240317213638.131057-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 | 210 +++++++++++++++++++++++++++++++++-
src/lexer.h | 29 +++++
src/parser.c | 209 ++++++++++++++++++++++++++++++---
tests/integration/cli_test.c | 56 ++++++++-
tests/integration/proc_exec.h | 3 +-
8 files changed, 536 insertions(+), 22 deletions(-)
create mode 100644 examples/expression.ol
base-commit: b34e6e1e8dde2852c2d1b050b6ac882605959180
--
2.44.0
next reply other threads:[~2024-03-17 20:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-17 21:29 Johnny Richard [this message]
2024-03-17 21:29 ` [PATCH olang v2 1/3] lexer: add tokenize support to binary op tokens Johnny Richard
2024-03-18 0:30 ` Carlos Maniero
2024-03-18 8:49 ` Johnny Richard
2024-03-17 21:29 ` [PATCH olang v2 2/3] ast: create binary operation ast node Johnny Richard
2024-03-17 21:29 ` [PATCH olang v2 3/3] parser: add all binary operation expressions Johnny Richard
2024-03-17 20:37 ` [olang/patches/.build.yml] build success builds.sr.ht
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=20240317213638.131057-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