Skip to content

Commit

Permalink
Fixed failure in build
Browse files Browse the repository at this point in the history
All tests passed/code is restructured
QuLangProcessor ready for release
  • Loading branch information
Zedrichu committed May 13, 2023
1 parent d5d05be commit 3697e88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions QuLangProcessor/Compiler.fs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ let rec internal evalArith (expr:ArithExpr) (memory:Map<string, ArithExpr * int>
| _, Num 1 | _, Float 1.0 -> x1
| c, d when c=d -> Num 1
| BinaryOp(a, Mul, c), Num b ->
evalArith (BinaryOp(BinaryOp(a, Div, Num b), Mul, c)) memory
evalArith (BinaryOp(BinaryOp(a, Div, Float b), Mul, c)) memory
| UnaryOp (Minus, a), _ -> evalArith (UnaryOp (Minus,BinaryOp(a,Div,y1))) memory
| Num w, _ -> try
interopA (/) (Float w) y1
with _ -> BinaryOp(x1, Div, y1)
| _, _ -> try
interopA (/) x1 y1
with _ -> BinaryOp(x1, Div, y1)
| BinaryOp(x,Add, y) -> let x1 = evalArith x memory
let y1 = evalArith y memory
match x1, y1 with
Expand Down
8 changes: 5 additions & 3 deletions QuboxSimulator.sln.DotSettings.user
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@



<s:Boolean x:Key="/Default/Environment/Filtering/ExcludeCoverageFilters/=QuLangProcessor_003B_002A_003BQuLangProcessor_002E_005Ffsyacc_005Freductions_0040569_002D1_003B_002A/@EntryIndexedValue">True</s:Boolean>

<s:Boolean x:Key="/Default/Environment/Filtering/ExcludeCoverageFilters/=QuLangProcessor_003B_002A_003BQuLangProcessor_002Etoken_003B_002A/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/Filtering/ExcludeCoverageFilters/=_002A_003B_002A_003B_002AAST_003B_002A/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/Filtering/ExcludeCoverageFilters/=_002A_003B_002A_003B_002ATags_003B_002A/@EntryIndexedValue">True</s:Boolean>
Expand Down Expand Up @@ -61,10 +61,12 @@


<s:Boolean x:Key="/Default/Environment/Filtering/IncludeCoverageFilters/=_002AQuboxBlazor_003B_002A_003B_002A_003B_002A/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/Filtering/IncludeCoverageFilters/=_002AQuboxSimulator_003B_002A_003B_002A_003B_002A/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/Filtering/IncludeCoverageFilters/=_002AQuBoxEngine_003B_002A_003B_002A_003B_002A/@EntryIndexedValue">True</s:Boolean>


<s:Boolean x:Key="/Default/Environment/Filtering/IncludeCoverageFilters/=_002AQuLangProcessor_003B_002A_003B_002A_003B_002A/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/Environment/Highlighting/HighlightingSourceSnapshotLocation/@EntryValue">/Users/adrianzvizdenco/Library/Caches/JetBrains/Rider2022.3/resharper-host/temp/Rider/vAny/CoverageData/_QuboxSimulator.853814830/Snapshot/snapshot.utdcvr</s:String>
<s:String x:Key="/Default/Environment/Highlighting/HighlightingSourceSnapshotLocation/@EntryValue">/Users/adrianzvizdenco/Library/Caches/JetBrains/Rider2023.1/resharper-host/temp/Rider/vAny/CoverageData/_QuboxSimulator.853814830/Snapshot/snapshot.utdcvr</s:String>

<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=e180c2a8_002D571d_002D4436_002Dbb10_002D681adb104fd5/@EntryIndexedValue">&lt;SessionState ContinuousTestingMode="0" IsActive="True" Name="All tests from Solution" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session"&gt;
&lt;Solution /&gt;
&lt;/SessionState&gt;</s:String>
Expand Down

0 comments on commit 3697e88

Please sign in to comment.