We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 069d3dc commit 9408568Copy full SHA for 9408568
stdlib/runtime/atoi/parse.gr
@@ -1,5 +1,4 @@
1
-// TODO(#1050): Remove dependency on Pervasives once Option/Result types are imbedded in the compiler
2
-
+/* grainc-flags --no-pervasives */
3
module Parse
4
5
include "runtime/unsafe/wasmi32"
@@ -21,6 +20,9 @@ include "runtime/bigint" as BI
21
20
include "runtime/numbers"
22
from Numbers use { reducedInteger }
23
+primitive (&&): (Bool, Bool) -> Bool = "@and"
24
+primitive (||): (Bool, Bool) -> Bool = "@or"
25
+
26
@unsafe
27
provide let parseInt = (string: String, radix: Number) => {
28
let _CHAR_0 = 0x30n
0 commit comments