public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
* [PATCH olang v1 0/3] frontend: add basic arithmetic expr support
@ 2024-03-13 21:21 Johnny Richard
  2024-03-13 21:21 ` [PATCH olang v1 1/3] lexer: add tokenize support for '+' '/' '*' '-' Johnny Richard
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Johnny Richard @ 2024-03-13 21:21 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel; +Cc: Johnny Richard

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


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

end of thread, other threads:[~2024-03-17 20:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-13 21:21 [PATCH olang v1 0/3] frontend: add basic arithmetic expr support Johnny Richard
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

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