-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bfdbd7
commit 8c7dcb8
Showing
34 changed files
with
150 additions
and
127 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using Trs80.Level1Basic.HostMachine; | ||
|
||
namespace Trs80.Level1Basic.CommandModels; | ||
|
||
public interface ITrs80DataModel | ||
{ | ||
HostFont OriginalHostFont { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Trs80.Level1Basic.Common; | ||
|
||
public interface IAppSettings | ||
{ | ||
string FontName { get; set; } | ||
short FontSize { get; set; } | ||
} |
17 changes: 0 additions & 17 deletions
17
...ronment.Test/Trs80.Lewel1Basic.Environment.Test/Trs80.Lewel1Basic.Environment.Test.csproj
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
Trs80.Level1Basic.Environment.Test/Trs80.Lewel1Basic.Environment.Test/UnitTest1.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Trs80.Level1Basic.HostMachine; | ||
|
||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] | ||
public struct FontInfo | ||
{ | ||
public int cbSize; | ||
public int FontIndex; | ||
public short FontWidth; | ||
public short FontSize; | ||
public int FontFamily; | ||
public int FontWeight; | ||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] | ||
public string FontName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Trs80.Level1Basic.HostMachine; | ||
|
||
[StructLayout(LayoutKind.Sequential)] | ||
public struct Rect | ||
{ | ||
public int Left; // x position of upper-left corner | ||
public int Top; // y position of upper-left corner | ||
public int Right; // x position of lower-right corner | ||
public int Bottom; // y position of lower-right corner | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Trs80.Level1Basic.VirtualMachine.Machine; | ||
|
||
public interface ICallable | ||
{ | ||
int Arity { get; set; } | ||
Func<ITrs80, List<dynamic>, dynamic> Call { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Trs80.Level1Basic.VirtualMachine.Machine; | ||
|
||
public interface INativeFunctions | ||
{ | ||
List<Callable> Get(string name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Collections.Generic; | ||
using Trs80.Level1Basic.VirtualMachine.Parser.Statements; | ||
using Trs80.Level1Basic.VirtualMachine.Scanner; | ||
|
||
namespace Trs80.Level1Basic.VirtualMachine.Parser; | ||
|
||
public interface IParser | ||
{ | ||
IStatement Parse(List<Token> tokens); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Trs80.Level1Basic.VirtualMachine/Parser/Statements/IListStatementDecorator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
|
||
namespace Trs80.Level1Basic.VirtualMachine.Parser.Statements; | ||
|
||
public interface IListStatementDecorator : IStatement | ||
{ | ||
public Type BaseType(); | ||
public IStatement UnDecorate(); | ||
|
||
IStatement Enclosing { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Collections.Generic; | ||
using Trs80.Level1Basic.Common; | ||
|
||
namespace Trs80.Level1Basic.VirtualMachine.Scanner; | ||
|
||
public interface IScanner | ||
{ | ||
List<Token> ScanTokens(SourceLine source); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Trs80.Level1Basic.Common; | ||
using WorkflowCore.Interface; | ||
|
||
namespace Trs80.Level1Basic.Workflow; | ||
|
||
public interface IInputStep : IStepBody | ||
{ | ||
bool WritePrompt { get; set; } | ||
bool Done { get; set; } | ||
SourceLine SourceLine { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Trs80.Level1Basic.VirtualMachine.Parser.Statements; | ||
using WorkflowCore.Interface; | ||
|
||
namespace Trs80.Level1Basic.Workflow; | ||
|
||
public interface IInterpretStep : IStepBody | ||
{ | ||
Statement Statement { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Trs80.Level1Basic.VirtualMachine.Parser.Statements; | ||
using Trs80.Level1Basic.VirtualMachine.Scanner; | ||
using WorkflowCore.Interface; | ||
|
||
namespace Trs80.Level1Basic.Workflow; | ||
|
||
public interface IParseStep : IStepBody | ||
{ | ||
List<Token> Tokens { get; set; } | ||
IStatement Statement { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Trs80.Level1Basic.Common; | ||
using Trs80.Level1Basic.VirtualMachine.Scanner; | ||
using WorkflowCore.Interface; | ||
|
||
namespace Trs80.Level1Basic.Workflow; | ||
|
||
public interface IScanStep : IStepBody | ||
{ | ||
SourceLine SourceLine { get; set; } | ||
List<Token> Tokens { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using WorkflowCore.Interface; | ||
|
||
namespace Trs80.Level1Basic.Workflow; | ||
|
||
public interface ISetupConsoleStep : IStepBody | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using WorkflowCore.Interface; | ||
|
||
namespace Trs80.Level1Basic.Workflow; | ||
|
||
public interface IShutdownConsoleStep : IStepBody | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.