diff options
author | Vladimir Azarov <avm@intermediate-node.net> | 2025-05-25 19:59:56 +0200 |
---|---|---|
committer | Vladimir Azarov <avm@intermediate-node.net> | 2025-05-25 19:59:56 +0200 |
commit | d9c809a5550b2fe23b2fd1e66672b503730d55f1 (patch) | |
tree | 6f8001d56823305f9f93c52833362b28e9d2def4 /driver.fun | |
parent | 2a1cfad37d5e87b2d7eb3c9da16db66364a9b9a3 (diff) |
Expression parsing
Diffstat (limited to 'driver.fun')
-rw-r--r-- | driver.fun | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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 |