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] compiler: enable full compilation for vars
Date: Sat, 21 Sep 2024 02:20:37 +0200	[thread overview]
Message-ID: <20240921002250.902558-1-johnny@johnnyrichard.com> (raw)

The variables are consts and need more work to get fully functional.
This first patchset is a beginning of the work.

Johnny Richard (3):
  scope: create scope data structure
  checker: create checker and populate scope on ast nodes
  codegen: add support scopes and symbols lookups for var

 src/ast.h                                     |   4 +
 src/checker.c                                 | 125 +++++++
 src/checker.h                                 |  34 ++
 src/codegen_linux_x86_64.c                    | 347 ++++++++++--------
 src/codegen_linux_x86_64.h                    |  16 +-
 src/main.c                                    |  12 +-
 src/scope.c                                   | 101 +++++
 src/scope.h                                   |  54 +++
 .../integration/tests/0024_var_definition.ol  |   4 +
 9 files changed, 551 insertions(+), 146 deletions(-)
 create mode 100644 src/checker.c
 create mode 100644 src/checker.h
 create mode 100644 src/scope.c
 create mode 100644 src/scope.h


base-commit: 29cc9fc4a69e74987a1b6c216ff701a9eaf379b3
-- 
2.46.0


             reply	other threads:[~2024-09-21  0:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-21  0:20 Johnny Richard [this message]
2024-09-21  0:20 ` [PATCH olang v1 1/3] scope: create scope data structure Johnny Richard
2024-09-21  0:20 ` [PATCH olang v1 2/3] checker: create checker and populate scope on ast nodes Johnny Richard
2024-09-21  0:20 ` [PATCH olang v1 3/3] codegen: add support scopes and symbols lookups for var Johnny Richard
2024-09-21  0:23   ` [olang/patches/.build.yml] build success builds.sr.ht
2024-09-21  0:59 ` [PATCH olang v1 0/3] compiler: enable full compilation for vars 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=20240921002250.902558-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