summaryrefslogtreecommitdiff
path: root/driver.fun
diff options
context:
space:
mode:
authorVladimir Azarov <avm@intermediate-node.net>2025-05-25 19:59:56 +0200
committerVladimir Azarov <avm@intermediate-node.net>2025-05-25 19:59:56 +0200
commitd9c809a5550b2fe23b2fd1e66672b503730d55f1 (patch)
tree6f8001d56823305f9f93c52833362b28e9d2def4 /driver.fun
parent2a1cfad37d5e87b2d7eb3c9da16db66364a9b9a3 (diff)
Expression parsing
Diffstat (limited to 'driver.fun')
-rw-r--r--driver.fun14
1 files changed, 10 insertions, 4 deletions
diff --git a/driver.fun b/driver.fun
index 5336987..3e2df5e 100644
--- a/driver.fun
+++ b/driver.fun
@@ -1,4 +1,4 @@
-functor Driver(P: PPC): DRIVER = struct
+functor Driver(P: PARSER): DRIVER = struct
structure P = P
datatype execMode = Normal | DebugE | DebugT
@@ -50,9 +50,15 @@ functor Driver(P: PPC): DRIVER = struct
val file = valOf $ #file config
in
case (#mode config) of
- Normal => die `"Normal mode is not implemented yet" %
- | DebugT => P.T.debugPrint file
- | DebugE => P.debugPrint file (#includeDirs config)
+ Normal =>
+ let
+ val parseCtx = P.createParseCtx file (#includeDirs config)
+ val (_, _) = P.parseDef parseCtx
+ in
+ raise Unimplemented
+ end
+ | DebugT => P.P.T.debugPrint file
+ | DebugE => P.P.debugPrint file (#includeDirs config)
end
end