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/2] parser: implement variable definition
Date: Wed, 11 Sep 2024 03:03:45 +0200	[thread overview]
Message-ID: <20240911010517.196175-1-johnny@johnnyrichard.com> (raw)

Johnny Richard (2):
  lexer: add support var keyword
  parser: add var definition and reference support

 src/ast.c                                     | 28 ++++++++++
 src/ast.h                                     | 22 ++++++++
 src/lexer.c                                   |  5 ++
 src/lexer.h                                   |  1 +
 src/parser.c                                  | 52 +++++++++++++++++++
 src/pretty_print_ast.c                        | 25 +++++++++
 .../integration/tests/0024_var_definition.ol  | 33 ++++++++++++
 7 files changed, 166 insertions(+)
 create mode 100644 tests/integration/tests/0024_var_definition.ol


base-commit: 8600ca34fb0fbae495a8737535aeffe4d44eb0ab
-- 
2.46.0


             reply	other threads:[~2024-09-10 23:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-11  1:03 Johnny Richard [this message]
2024-09-10 23:15 ` Carlos Maniero
2024-09-11  1:03 ` [PATCH olang v1 1/2] lexer: add support var keyword Johnny Richard
2024-09-11  1:03 ` [PATCH olang v1 2/2] parser: add var definition and reference support Johnny Richard
2024-09-10 23:05   ` [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=20240911010517.196175-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