diff options
author | Chimrod <> | 2023-10-03 18:19:15 +0200 |
---|---|---|
committer | Chimrod <> | 2023-10-15 19:04:36 +0200 |
commit | 5a18a66763bcc19de117cb83293d7bd25a0ea10c (patch) | |
tree | 1627ae50da1a87e5952b5fab21b7290b0555041e /lib/syntax/tree.ml | |
parent | 49f69c1ab4d3d8716f30d7bd36a66a4241e16d33 (diff) |
Switched the keyword from string to a sum type
Diffstat (limited to 'lib/syntax/tree.ml')
-rw-r--r-- | lib/syntax/tree.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/syntax/tree.ml b/lib/syntax/tree.ml index bb31253..ecad1b4 100644 --- a/lib/syntax/tree.ml +++ b/lib/syntax/tree.ml @@ -28,7 +28,7 @@ module Ast = struct | Declaration of ('a * 'a variable * T.assignation_operator * 'a expression) | Expression of 'a expression | Comment of 'a - | Call of 'a * string * 'a expression list + | Call of 'a * T.keywords * 'a expression list | Location of 'a * string [@@deriving eq, show] end @@ -64,7 +64,7 @@ module Instruction : type expression = Expression.repr type variable = Expression.variable - let call : pos -> string -> expression list -> repr = + let call : pos -> T.keywords -> expression list -> repr = fun pos name args -> Ast.Call (pos, name, args) let location : pos -> string -> repr = |