plum

#treesitter#compiler#wasm

git clone https://git.pyrossh.dev/plum

A statically typed, imperative programming language inspired by rust, python


plum-tooling/tree-sitter-plum/test/corpus/for.txt
================================================================================
for
================================================================================

fun main() =
  for i := range 10
    printLn("for")
    break
    continue

--------------------------------------------------------------------------------

(source
  (fn
    (fn_identifier)
    (body
      (for
        (var_identifier)
        (primary_expression
          (integer))
        (body
          (expression
            (primary_expression
              (fn_call
                (var_identifier)
                (fn_argument_list
                  (expression
                    (primary_expression
                      (string
                        (string_start)
                        (string_content)
                        (string_end))))))))
          (break)
          (continue))))))