public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
From: Johnny Richard <johnny@johnnyrichard.com>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Johnny Richard <johnny@johnnyrichard.com>
Subject: [PATCH olang v1 0/3] frontend: add basic arithmetic expr support
Date: Wed, 13 Mar 2024 22:21:49 +0100	[thread overview]
Message-ID: <20240313212855.174554-1-johnny@johnnyrichard.com> (raw)

This patchset implements the frontend for parsing basic arithmetic
expressions. The backend implementation is not implemented on this patch
series.

Johnny Richard (3):
  lexer: add tokenize support to '+' '/' '*' '-'
  ast: create binary operation ast node
  parser: add basic arithmetic expressions '+' '*' '/' '-'

 examples/expression.ol        |   3 +
 src/ast.c                     |  14 ++++
 src/ast.h                     |  20 +++++
 src/lexer.c                   |  24 +++++-
 src/lexer.h                   |   4 +
 src/parser.c                  | 140 ++++++++++++++++++++++++++++++----
 tests/integration/cli_test.c  |  56 +++++++++++++-
 tests/integration/proc_exec.h |   3 +-
 8 files changed, 247 insertions(+), 17 deletions(-)
 create mode 100644 examples/expression.ol


base-commit: b34e6e1e8dde2852c2d1b050b6ac882605959180
-- 
2.44.0


             reply	other threads:[~2024-03-13 20:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-13 21:21 Johnny Richard [this message]
2024-03-13 21:21 ` [PATCH olang v1 1/3] lexer: add tokenize support for '+' '/' '*' '-' Johnny Richard
2024-03-13 21:21 ` [PATCH olang v1 2/3] ast: create binary operation ast node Johnny Richard
2024-03-13 21:21 ` [PATCH olang v1 3/3] parser: add basic arithmetic expressions '+' '*' '/' '-' Johnny Richard
2024-03-13 20:29   ` [olang/patches/.build.yml] build success builds.sr.ht
2024-03-17 21:37 ` [PATCH olang v1 0/3] frontend: add basic arithmetic expr support 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=20240313212855.174554-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