public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
* [PATCH olang v1 0/3] compiler: enable full compilation for vars
@ 2024-09-21  0:20 Johnny Richard
  2024-09-21  0:20 ` [PATCH olang v1 1/3] scope: create scope data structure Johnny Richard
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Johnny Richard @ 2024-09-21  0:20 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel; +Cc: Johnny Richard

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-21  0:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-21  0:20 [PATCH olang v1 0/3] compiler: enable full compilation for vars Johnny Richard
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

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