diff options
author | Eduardo Julian | 2022-08-14 21:02:22 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-08-14 21:02:22 -0400 |
commit | 0f9bc13a34b729d9ae9db31276feb2a66785d06b (patch) | |
tree | 25f8ec214bfe56f7dc7d8be637b06d1ab6a425f6 /documentation/book/the_lux_programming_language/appendix_g.md | |
parent | 24e4ccef052816f17ccfc55f2e515a07cc9c2067 (diff) |
Documentation changes for v0.7.0
Diffstat (limited to 'documentation/book/the_lux_programming_language/appendix_g.md')
-rw-r--r-- | documentation/book/the_lux_programming_language/appendix_g.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/documentation/book/the_lux_programming_language/appendix_g.md b/documentation/book/the_lux_programming_language/appendix_g.md index 3f8113057..e18349a69 100644 --- a/documentation/book/the_lux_programming_language/appendix_g.md +++ b/documentation/book/the_lux_programming_language/appendix_g.md @@ -11,15 +11,15 @@ Of course, the parser may fail, in which case the user should receive some meani The `library/lux/control/parser/text` library provides a type, and a host of combinators, for building and working with text parsers. ```clojure -(type: .public Offset +(type .public Offset Nat) -(type: .public Parser +(type .public Parser (//.Parser [Offset Text])) ... And from library/lux/control/parser -(type: .public (Parser s a) +(type .public (Parser s a) (-> s (Try [s a]))) ``` @@ -129,11 +129,11 @@ For example: (regex "a(.)c") ... That means, these are the types of these regular-expressions: -(: (Parser Text) - (regex "a{1,}")) +(is (Parser Text) + (regex "a{1,}")) -(: (Parser [Text Text]) - (regex "a(.)c")) +(is (Parser [Text Text]) + (regex "a(.)c")) ``` --- |