Implement our parser, . field access, comment preservation and line number tracking for source-level debugging #26

Merged
alex-eg merged 13 commits from our-parser into main 2026-09-15 19:43:14 +02:00
Showing only changes of commit 0db4a11a2b - Show all commits

View File

@@ -0,0 +1,13 @@
(input)
(output "start" "end")
(return 0)
;;; A top-level comment, preserved into the generated C.
(include stdio.h)
;; Another top-level comment, right before the function.
(pub fn main () int
;; a comment in statement position
(puts "start")
(puts "end") ; a trailing comment after a statement
(return 0))