summaryrefslogtreecommitdiff
path: root/src/Parser.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-11-29 21:40:16 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2024-11-29 21:40:16 +0100
commit1670b628cc7accea1c7ecd9359a7dccb6bd50a45 (patch)
treeefad1d67a737fe654acb8ccfeb3b06fcf767de63 /src/Parser.hs
parent56878ad193071539a1fd83298c4509fe21b880fd (diff)
Represent root network as an internal variable
Diffstat (limited to 'src/Parser.hs')
-rw-r--r--src/Parser.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Parser.hs b/src/Parser.hs
index 4b1e69a..ab44833 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -22,6 +22,7 @@ import System.Directory
import System.Exit
import System.FilePath
+import Network
import Parser.Core
import Parser.Expr
import Parser.Statement
@@ -83,7 +84,7 @@ parseTestFile path = do
{ testVars = concat
[ map (fmap someVarValueType) builtins
]
- , testContext = SomeExpr RootNetwork
+ , testContext = SomeExpr $ varExpr SourceLineBuiltin rootNetworkVar
, testNextTypeVar = 0
, testTypeUnif = M.empty
}