@@ -19,9 +19,9 @@ public class EZText
1919 /// </summary>
2020 public int CodeLine { get ; set ; } = 0 ;
2121 /// <summary>
22- /// Static name for EZText Local Variable, "EZTEXT_GENERATED_VARIABLE_FOR_IF_SYNTAX___123 "
22+ /// Static name for EZText Local Variable, "EZTEXT_GENERATED_VARIABLE "
2323 /// </summary>
24- public static readonly string EZTEXT_Local_If_Var = "EZTEXT_GENERATED_VARIABLE_FOR_IF_SYNTAX___123 " ;
24+ public static readonly string EZTEXT_Local_If_Var = "EZTEXT_GENERATED_VARIABLE " ;
2525 /// <summary>
2626 /// Errors in EZText
2727 /// </summary>
@@ -52,8 +52,7 @@ public string Translate(string InputCode, int _codeLine)
5252 try
5353 {
5454 CodeLine = _codeLine ;
55- InputCode = InputCode . Replace ( "." , "|" ) ;
56- string [ ] lines = InputCode . Split ( new [ ] { '\n ' , '|' } ) . Select ( x => x . Trim ( ) ) . Where ( y => ! y . Equals ( "" ) ) . Select ( z=> z
55+ string [ ] lines = InputCode . Replace ( "." , "|" ) . Split ( new [ ] { '\n ' , '|' } ) . Select ( x => x . Trim ( )
5756 . Replace ( "is not equal to" , "!=" )
5857 . Replace ( "is not" , "!" )
5958 . Replace ( "is equal to" , "equals" )
@@ -64,9 +63,9 @@ public string Translate(string InputCode, int _codeLine)
6463 . Replace ( "is less than" , "<" )
6564 . Replace ( ", then " , " then " )
6665 . Replace ( " then " , " : " )
67- . Replace ( "[p ]" , "." )
66+ . Replace ( "[P ]" , "." )
6867 . Replace ( "[SPACE]" , " " )
69- ) . ToArray ( ) ;
68+ ) . Where ( y => ! y . Equals ( "" ) ) . ToArray ( ) ;
7069 for ( int i = 0 ; i < lines . Length ; i ++ )
7170 {
7271 CodeLine ++ ;
@@ -379,7 +378,7 @@ static EZText StaticTranslate(string line)
379378 }
380379 else
381380 {
382- Error ( "Expected 'a' after create for syntax, 'Create a variable named name with the value X'" , e ) ;
381+ Error ( "Expected 'a' after create for syntax, 'Create a variable/list named name with the value X'" , e ) ;
383382 }
384383 }
385384 catch
0 commit comments