@@ -4,7 +4,7 @@ namespace FAST.FBasicInterpreter
44 /// The interpreter factory of the FBASIC
55 /// Part: THE FBASIC INTERPRETER METHODS
66 /// </summary>
7- public partial class Interpreter : IfbasicError
7+ public partial class Interpreter : IFBasicError
88 {
99 #region (+) Add and more for variables
1010
@@ -113,7 +113,7 @@ public T GetDataAdapter<T>(string name) where T: IfbasicDataAdapter
113113 /// </summary>
114114 /// <param name="name">The collection name</param>
115115 /// <param name="collection">The collection handler</param>
116- public void AddCollection ( string name , IfbasicCollection collection )
116+ public void AddCollection ( string name , IBAasicCollection collection )
117117 {
118118 if ( ! dataAdapters . ContainsKey ( name ) )
119119 {
@@ -261,7 +261,7 @@ public Value GetVar(string name)
261261 /// </summary>
262262 public void Exec ( )
263263 {
264- lex . setAddonStatements ( statements . Keys . ToArray ( ) ) ;
264+ lex . SetAddonStatements ( statements . Keys . ToArray ( ) ) ;
265265 GetNextToken = interpreter_GetNextToken ;
266266 exit = false ;
267267 GetNextToken ( ) ;
@@ -273,7 +273,7 @@ public void Exec()
273273 /// </summary>
274274 public void RestartProgram ( )
275275 {
276- this . lex . restartProgram ( ) ;
276+ this . lex . RestartProgram ( ) ;
277277 this . Result = new ( ) ;
278278 this . instructionStack = new ( ) ;
279279 this . ifCounter = 0 ;
@@ -284,10 +284,10 @@ public void RestartProgram()
284284 /// Create a program container
285285 /// </summary>
286286 /// <returns>The program container</returns>
287- public bool tryParseSourceCode ( out programContainer program )
287+ public bool tryParseSourceCode ( out ProgramContainer program )
288288 {
289289 program = new ( ) ;
290- List < programElement > src = new ( ) ;
290+ List < ProgramElement > src = new ( ) ;
291291 program . variables = new ( ) ;
292292 try
293293 {
@@ -301,7 +301,7 @@ public bool tryParseSourceCode(out programContainer program)
301301 {
302302 if ( src . Count > 0 ) // skip all the first newlines if the program start with them
303303 {
304- src . Add ( new programElement ( ) { token = lastToken , value = lex . Value , identifier = lex . Identifier } ) ;
304+ src . Add ( new ProgramElement ( ) { token = lastToken , value = lex . Value , identifier = lex . Identifier } ) ;
305305 }
306306 while ( lastToken == Token . NewLine ) GetNextToken ( ) ;
307307 }
@@ -311,14 +311,14 @@ public bool tryParseSourceCode(out programContainer program)
311311 break ;
312312 }
313313 lineMarker = lex . TokenMarker ; // save current line marker
314- src . Add ( new programElement ( ) { token = lastToken ,
314+ src . Add ( new ProgramElement ( ) { token = lastToken ,
315315 value = lex . Value ,
316316 identifier = lex . Identifier ,
317317 isDoted = lex . Identifier . Contains ( '.' )
318318 } ) ;
319319 GetNextToken ( ) ;
320320 }
321- src . Add ( new programElement ( ) { token = Token . EOF , value = lex . Value , identifier = "" } ) ;
321+ src . Add ( new ProgramElement ( ) { token = Token . EOF , value = lex . Value , identifier = "" } ) ;
322322 }
323323 catch
324324 {
0 commit comments