Skip to content

Commit 7d13dad

Browse files
committed
Added new exception
1 parent 0990459 commit 7d13dad

File tree

3 files changed

+43
-23
lines changed

3 files changed

+43
-23
lines changed

Assembler.sln

+27-22
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.21005.1
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembler", "Assembler\Assembler.csproj", "{9F5B441F-C899-4336-8ACC-3EFB9BBCDFA2}"
7-
EndProject
8-
Global
9-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10-
Debug|Any CPU = Debug|Any CPU
11-
Release|Any CPU = Release|Any CPU
12-
EndGlobalSection
13-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{9F5B441F-C899-4336-8ACC-3EFB9BBCDFA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{9F5B441F-C899-4336-8ACC-3EFB9BBCDFA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{9F5B441F-C899-4336-8ACC-3EFB9BBCDFA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{9F5B441F-C899-4336-8ACC-3EFB9BBCDFA2}.Release|Any CPU.Build.0 = Release|Any CPU
18-
EndGlobalSection
19-
GlobalSection(SolutionProperties) = preSolution
20-
HideSolutionNode = FALSE
21-
EndGlobalSection
22-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.21005.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembler", "Assembler\Assembler.csproj", "{9F5B441F-C899-4336-8ACC-3EFB9BBCDFA2}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3D3D5E0C-2675-4B21-A695-FAE8547E080B}"
9+
ProjectSection(SolutionItems) = preProject
10+
SyntaxErrorException.cs = SyntaxErrorException.cs
11+
EndProjectSection
12+
EndProject
13+
Global
14+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
15+
Debug|Any CPU = Debug|Any CPU
16+
Release|Any CPU = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
19+
{9F5B441F-C899-4336-8ACC-3EFB9BBCDFA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{9F5B441F-C899-4336-8ACC-3EFB9BBCDFA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{9F5B441F-C899-4336-8ACC-3EFB9BBCDFA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{9F5B441F-C899-4336-8ACC-3EFB9BBCDFA2}.Release|Any CPU.Build.0 = Release|Any CPU
23+
EndGlobalSection
24+
GlobalSection(SolutionProperties) = preSolution
25+
HideSolutionNode = FALSE
26+
EndGlobalSection
27+
EndGlobal

Assembler/CodeReader.cs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace Assembler
77
{
88
public class CodeReader
99
{
10-
//private static readonly Regex regex = new Regex(@"(?:\S|(?<=\\))+",
1110
private static readonly Regex preregex = new Regex(@"\!.*$*",
1211
RegexOptions.IgnoreCase | RegexOptions.Compiled);
1312
private static readonly Regex regex = new Regex(@"\S+",

SyntaxErrorException.cs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
3+
public class SyntaxErrorException:Exception
4+
{
5+
public SyntaxErrorException()
6+
{
7+
8+
}
9+
public SyntaxErrorException(string message)
10+
: base(message){
11+
}
12+
public SyntaxErrorException(string message, Exception inner)
13+
: base(message, inner){
14+
}
15+
16+
}

0 commit comments

Comments
 (0)