public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
* [PATCH olang v1 0/3] implement unary operator for bitwise not
@ 2024-10-09 21:18 Johnny Richard
  2024-10-09 21:18 ` [PATCH olang v1 1/3] doc: add unary expression to language spec Johnny Richard
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Johnny Richard @ 2024-10-09 21:18 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel; +Cc: Johnny Richard

This patchset implements the parsing of most unary operations we will
need in the future.  However the full implementation (until the codegen)
is only done for bitwise-not operator.

Johnny Richard (3):
  doc: add unary expression to language spec
  lexer: add tilde token support
  parser: codegen(x86_64): add bitwise not unary op support

 docs/info/specification.texi                 |  9 +++++
 src/ast.c                                    | 14 +++++++
 src/ast.h                                    | 22 +++++++++++
 src/checker.c                                |  7 ++++
 src/codegen_linux_x86_64.c                   | 18 +++++++++
 src/lexer.c                                  |  6 +++
 src/lexer.h                                  |  1 +
 src/parser.c                                 | 35 ++++++++++++++++++
 src/pretty_print_ast.c                       | 22 ++++++++++-
 tests/olc/0033_unary_operator_bitwise_not.ol | 39 ++++++++++++++++++++
 10 files changed, 172 insertions(+), 1 deletion(-)
 create mode 100644 tests/olc/0033_unary_operator_bitwise_not.ol


base-commit: 02149b6ddd0bfc6f4e4774eb928e41031889cd73
-- 
2.46.0


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

end of thread, other threads:[~2024-10-09 23:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-09 21:18 [PATCH olang v1 0/3] implement unary operator for bitwise not Johnny Richard
2024-10-09 21:18 ` [PATCH olang v1 1/3] doc: add unary expression to language spec Johnny Richard
2024-10-09 21:18 ` [PATCH olang v1 2/3] lexer: add tilde token support Johnny Richard
2024-10-09 21:18 ` [PATCH olang v1 3/3] parser: codegen(x86_64): add bitwise not unary op support Johnny Richard
2024-10-09 19:35   ` [olang/patches/.build.yml] build success builds.sr.ht
2024-10-09 23:00 ` [PATCH olang v1 0/3] implement unary operator for bitwise not 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