@@ -8,7 +8,12 @@ const EasyCoder_Core = {
8
8
const lino = compiler . getLino ( ) ;
9
9
compiler . next ( ) ;
10
10
// Get the (first) value
11
- const value1 = compiler . getValue ( ) ;
11
+ let value1 ;
12
+ try {
13
+ value1 = compiler . getValue ( ) ;
14
+ } catch ( err ) {
15
+ return false ;
16
+ }
12
17
if ( compiler . tokenIs ( `to` ) ) {
13
18
compiler . next ( ) ;
14
19
// Check if a value holder is next
@@ -424,14 +429,19 @@ const EasyCoder_Core = {
424
429
425
430
compile : compiler => {
426
431
const lino = compiler . getLino ( ) ;
427
- var target ;
432
+ let target ;
428
433
if ( compiler . nextIsSymbol ( ) ) {
429
434
// It may be the target
430
435
const symbol = compiler . getSymbol ( ) ;
431
436
target = compiler . getCommandAt ( symbol . pc ) . name ;
432
437
}
433
438
// Get the value even if we have a target
434
- const value1 = compiler . getValue ( ) ;
439
+ let value1 ;
440
+ try {
441
+ value1 = compiler . getValue ( ) ;
442
+ } catch ( err ) {
443
+ return false ;
444
+ }
435
445
if ( compiler . tokenIs ( `by` ) ) {
436
446
compiler . next ( ) ;
437
447
}
@@ -887,14 +897,19 @@ const EasyCoder_Core = {
887
897
compile : compiler => {
888
898
const lino = compiler . getLino ( ) ;
889
899
compiler . next ( ) ;
890
- var target ;
900
+ let target ;
891
901
if ( compiler . isSymbol ( ) ) {
892
902
// It may be the target
893
903
const symbol = compiler . getSymbol ( ) ;
894
904
target = compiler . getCommandAt ( symbol . pc ) . name ;
895
905
}
896
906
// Get the value even if we have a target
897
- const value1 = compiler . getValue ( ) ;
907
+ let value1 ;
908
+ try {
909
+ value1 = compiler . getValue ( ) ;
910
+ } catch ( err ) {
911
+ return false ;
912
+ }
898
913
if ( compiler . tokenIs ( `by` ) ) {
899
914
compiler . next ( ) ;
900
915
}
@@ -1866,7 +1881,12 @@ const EasyCoder_Core = {
1866
1881
const lino = compiler . getLino ( ) ;
1867
1882
compiler . next ( ) ;
1868
1883
// Get the (first) value
1869
- const value1 = compiler . getValue ( ) ;
1884
+ let value1 ;
1885
+ try {
1886
+ value1 = compiler . getValue ( ) ;
1887
+ } catch ( err ) {
1888
+ return false ;
1889
+ }
1870
1890
if ( compiler . tokenIs ( `from` ) ) {
1871
1891
compiler . next ( ) ;
1872
1892
if ( compiler . isSymbol ( ) ) {
0 commit comments