Skip to content

Commit e11f43d

Browse files
committed
$STARTSYM is in a symbol production at the start.
1 parent ecab9c5 commit e11f43d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

kmir/src/kmir/kdist/mir-semantics/kmir.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ module KMIR-CONFIGURATION
9292
// heap
9393
<memory> .Map </memory> // FIXME unclear how to model
9494
// FIXME where do we put the "GlobalAllocs"? in the heap, presumably?
95-
<start-symbol> $STARTSYM:String </start-symbol>
95+
<start-symbol> symbol($STARTSYM:String) </start-symbol>
9696
</kmir>
9797
endmodule
9898
```
@@ -119,7 +119,7 @@ function map and the initial memory have to be set up.
119119
// #init step, assuming a singleton in the K cell
120120
rule <k> #init(_Name:Symbol _Allocs:GlobalAllocs Functions:FunctionNames Items:MonoItems)
121121
=>
122-
#execFunction(#findItem(Items, symbol(FuncName)), Functions)
122+
#execFunction(#findItem(Items, FuncName), Functions)
123123
</k>
124124
<functions> _ => #mkFunctionMap(Functions, Items) </functions>
125125
<start-symbol> FuncName </start-symbol>

kmir/src/tests/integration/data/exec-smir/main-a-b-c/main-a-b-c.15.state

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
.Map
4949
</memory>
5050
<start-symbol>
51-
"main"
51+
symbol ( "main" )
5252
</start-symbol>
5353
</kmir>

kmir/src/tests/integration/data/exec-smir/main-a-b-c/main-a-b-c.run.state

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
.Map
4848
</memory>
4949
<start-symbol>
50-
"main"
50+
symbol ( "main" )
5151
</start-symbol>
5252
</kmir>

0 commit comments

Comments
 (0)