diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-06-23 23:53:26 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-23 23:53:26 -0300 |
| commit | c284fcd570342c31bc21169960579a20a763e32e (patch) | |
| tree | ce7485055116d794c55090ad0978e0b3f5ff4c2a /lib/scl/parser.ml | |
| parent | b81586ee4a0543a5f9866586c78dccdd6328934a (diff) | |
| download | Sakura-c284fcd570342c31bc21169960579a20a763e32e.tar.gz Sakura-c284fcd570342c31bc21169960579a20a763e32e.zip | |
Format
Diffstat (limited to '')
| -rw-r--r-- | lib/scl/parser.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/scl/parser.ml b/lib/scl/parser.ml index 53719ee..670139b 100644 --- a/lib/scl/parser.ml +++ b/lib/scl/parser.ml @@ -1,11 +1,11 @@ module Error = struct open Condition + let parse_error msg = condition "parse-error" msg empty end let validate = function - | (Ast.Begin { limit = Some limit; _ } | Ast.Fetch { limit = Some limit; _ }) - when limit <= 0 -> + | (Ast.Begin {limit= Some limit; _} | Ast.Fetch {limit= Some limit; _}) when limit <= 0 -> Error (Error.parse_error "The provision of `limit` is expected to be positive.") | stmt -> Ok stmt |
