wolfpack-parser 0.2.0

The parser of wolfpack. Internal part of wolfpack-lang, not a stable API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
source: crates/wolf_parser/tests/parser.rs
expression: result.dump
---
file
  doc! " Run with `wolf run --example demo`."
  module examples.demo
  (section imports (import lib (names word_count capitalize shout)))
  section main
    fn
      main
      ()
      block
        (let text "the wolf pack hunts together")
        (call print (call capitalize text))
        (call print (+ (call (. (call word_count text) to_string)) " words"))
        (call print (call shout "aroo"))