@surrealdb/lezer 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@
6
6
 
7
7
  ==>
8
8
 
9
- SurrealQL(Int,Int,Int)
9
+ SurrealQL(Number(Int),Number(Int),Number(Int))
10
10
 
11
11
  # Float
12
12
 
@@ -16,7 +16,7 @@ SurrealQL(Int,Int,Int)
16
16
 
17
17
  ==>
18
18
 
19
- SurrealQL(Float,Float,Float)
19
+ SurrealQL(Number(Float),Number(Float),Number(Float))
20
20
 
21
21
  # Float with exponent
22
22
 
@@ -27,7 +27,7 @@ SurrealQL(Float,Float,Float)
27
27
 
28
28
  ==>
29
29
 
30
- SurrealQL(Float,Float,Float,Float)
30
+ SurrealQL(Number(Float),Number(Float),Number(Float),Number(Float))
31
31
 
32
32
  # Float with f suffix
33
33
 
@@ -36,7 +36,7 @@ SurrealQL(Float,Float,Float,Float)
36
36
 
37
37
  ==>
38
38
 
39
- SurrealQL(Float,Float)
39
+ SurrealQL(Number(Float),Number(Float))
40
40
 
41
41
  # Float special values
42
42
 
@@ -45,7 +45,7 @@ NaN
45
45
 
46
46
  ==>
47
47
 
48
- SurrealQL(Float,Float)
48
+ SurrealQL(Number(Float),Number(Float))
49
49
 
50
50
  # Decimal
51
51
 
@@ -54,7 +54,7 @@ SurrealQL(Float,Float)
54
54
 
55
55
  ==>
56
56
 
57
- SurrealQL(Decimal,Decimal)
57
+ SurrealQL(Number(Decimal),Number(Decimal))
58
58
 
59
59
  # Negative numbers
60
60
 
@@ -63,7 +63,7 @@ SurrealQL(Decimal,Decimal)
63
63
 
64
64
  ==>
65
65
 
66
- SurrealQL(Int,Float)
66
+ SurrealQL(Number(Int),Number(Float))
67
67
 
68
68
  # Positive explicit sign
69
69
 
@@ -72,4 +72,4 @@ SurrealQL(Int,Float)
72
72
 
73
73
  ==>
74
74
 
75
- SurrealQL(Int,Float)
75
+ SurrealQL(Number(Int),Number(Float))
@@ -4,7 +4,7 @@
4
4
 
5
5
  ==>
6
6
 
7
- SurrealQL(Object(BraceOpen,ObjectContent(ObjectProperty(ObjectKey(KeyName),Colon,Int)),BraceClose))
7
+ SurrealQL(Object(BraceOpen,ObjectContent(ObjectProperty(ObjectKey(KeyName),Colon,Number(Int))),BraceClose))
8
8
 
9
9
  # Object with string keys
10
10
 
@@ -13,8 +13,8 @@ SurrealQL(Object(BraceOpen,ObjectContent(ObjectProperty(ObjectKey(KeyName),Colon
13
13
  ==>
14
14
 
15
15
  SurrealQL(Object(BraceOpen,ObjectContent(
16
- ObjectProperty(ObjectKey(String),Colon,Int),
17
- ObjectProperty(ObjectKey(String),Colon,Int)
16
+ ObjectProperty(ObjectKey(String),Colon,Number(Int)),
17
+ ObjectProperty(ObjectKey(String),Colon,Number(Int))
18
18
  ),BraceClose))
19
19
 
20
20
  # Empty object
@@ -49,8 +49,8 @@ SurrealQL(Block(BraceOpen,Ident,BraceClose))
49
49
  ==>
50
50
 
51
51
  SurrealQL(
52
- Object(BraceOpen,ObjectContent(ObjectProperty(ObjectKey(KeyName),Colon,Int)),BraceClose),
53
- Int
52
+ Object(BraceOpen,ObjectContent(ObjectProperty(ObjectKey(KeyName),Colon,Number(Int))),BraceClose),
53
+ Number(Int)
54
54
  )
55
55
 
56
56
  # Nested objects
@@ -60,5 +60,5 @@ SurrealQL(
60
60
  ==>
61
61
 
62
62
  SurrealQL(Object(BraceOpen,ObjectContent(ObjectProperty(ObjectKey(KeyName),Colon,
63
- Object(BraceOpen,ObjectContent(ObjectProperty(ObjectKey(KeyName),Colon,Int)),BraceClose)
63
+ Object(BraceOpen,ObjectContent(ObjectProperty(ObjectKey(KeyName),Colon,Number(Int))),BraceClose)
64
64
  )),BraceClose))
@@ -4,7 +4,7 @@
4
4
 
5
5
  ==>
6
6
 
7
- SurrealQL(Range(Int,RangeOp,Int))
7
+ SurrealQL(Range(Number(Int),RangeOp,Number(Int)))
8
8
 
9
9
  # Right-open range
10
10
 
@@ -12,7 +12,7 @@ SurrealQL(Range(Int,RangeOp,Int))
12
12
 
13
13
  ==>
14
14
 
15
- SurrealQL(Range(Int,RangeOp))
15
+ SurrealQL(Range(Number(Int),RangeOp))
16
16
 
17
17
  # Left-open inclusive range
18
18
 
@@ -28,4 +28,4 @@ SurrealQL(Range(RangeOp,String))
28
28
 
29
29
  ==>
30
30
 
31
- SurrealQL(Range(Int,RangeOp,Int))
31
+ SurrealQL(Range(Number(Int),RangeOp,Number(Int)))
@@ -52,7 +52,7 @@ test:{a: 1}
52
52
 
53
53
  ==>
54
54
 
55
- SurrealQL(RecordId(RecordTbIdent,Colon,Object(BraceOpen,ObjectContent(ObjectProperty(ObjectKey(KeyName),Colon,Int)),BraceClose)))
55
+ SurrealQL(RecordId(RecordTbIdent,Colon,Object(BraceOpen,ObjectContent(ObjectProperty(ObjectKey(KeyName),Colon,Number(Int))),BraceClose)))
56
56
 
57
57
  # Record ID with array value
58
58
 
@@ -60,7 +60,7 @@ test:[1, 2]
60
60
 
61
61
  ==>
62
62
 
63
- SurrealQL(RecordId(RecordTbIdent,Colon,Array("[",Int,Int,"]")))
63
+ SurrealQL(RecordId(RecordTbIdent,Colon,Array("[",Number(Int),Number(Int),"]")))
64
64
 
65
65
  # Record ID with prefixed string value
66
66
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ==>
6
6
 
7
- SurrealQL(Set(BraceOpen,Int,BraceClose))
7
+ SurrealQL(Set(BraceOpen,Number(Int),BraceClose))
8
8
 
9
9
  # Set with lone comma
10
10
 
@@ -20,7 +20,7 @@ SurrealQL(Set(BraceOpen,BraceClose))
20
20
 
21
21
  ==>
22
22
 
23
- SurrealQL(Set(BraceOpen,Int,Int,BraceClose))
23
+ SurrealQL(Set(BraceOpen,Number(Int),Number(Int),BraceClose))
24
24
 
25
25
  # Set with three elements
26
26
 
@@ -28,4 +28,4 @@ SurrealQL(Set(BraceOpen,Int,Int,BraceClose))
28
28
 
29
29
  ==>
30
30
 
31
- SurrealQL(Set(BraceOpen,Int,Int,Int,BraceClose))
31
+ SurrealQL(Set(BraceOpen,Number(Int),Number(Int),Number(Int),BraceClose))