Skip to content

Commit 184a770

Browse files
committed
Made classes public.
1 parent 1dbc9c8 commit 184a770

6 files changed

Lines changed: 20 additions & 33 deletions

File tree

‎ReClass.NET/AddressParser/AstBuilder.cs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
// Design taken from https://github.com/pieterderycke/Jace
2-
3-
using System;
1+
using System;
42
using System.Collections.Generic;
53
using System.Diagnostics.Contracts;
64
using System.Linq;
75

86
namespace ReClassNET.AddressParser
97
{
10-
class AstBuilder
8+
public class AstBuilder
119
{
1210
private readonly Dictionary<char, int> operationPrecedence;
1311

‎ReClass.NET/AddressParser/Interpreter.cs‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
// Design taken from https://github.com/pieterderycke/Jace
2-
3-
using System;
1+
using System;
42
using System.Diagnostics.Contracts;
53
using ReClassNET.Extensions;
64
using ReClassNET.Memory;
7-
using ReClassNET.Util;
85

96
namespace ReClassNET.AddressParser
107
{
11-
class Interpreter
8+
public class Interpreter
129
{
1310
public IntPtr Execute(IOperation operation, RemoteProcess process)
1411
{

‎ReClass.NET/AddressParser/Operations.cs‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
// Design taken from https://github.com/pieterderycke/Jace
2-
3-
using System;
1+
using System;
42
using System.Diagnostics.Contracts;
53

64
namespace ReClassNET.AddressParser
75
{
8-
internal interface IOperation
6+
public interface IOperation
97
{
108

119
}
1210

13-
internal class OffsetOperation : IOperation
11+
public class OffsetOperation : IOperation
1412
{
1513
public OffsetOperation(IntPtr value)
1614
{
@@ -37,7 +35,7 @@ public override int GetHashCode()
3735
}
3836
}
3937

40-
internal class ReadPointerOperation : IOperation
38+
public class ReadPointerOperation : IOperation
4139
{
4240
public ReadPointerOperation(IOperation argument)
4341
{
@@ -49,7 +47,7 @@ public ReadPointerOperation(IOperation argument)
4947
public IOperation Argument { get; }
5048
}
5149

52-
internal class AdditionOperation : IOperation
50+
public class AdditionOperation : IOperation
5351
{
5452
public AdditionOperation(IOperation argument1, IOperation argument2)
5553
{
@@ -64,7 +62,7 @@ public AdditionOperation(IOperation argument1, IOperation argument2)
6462
public IOperation Argument2 { get; }
6563
}
6664

67-
internal class SubtractionOperation : IOperation
65+
public class SubtractionOperation : IOperation
6866
{
6967
public SubtractionOperation(IOperation argument1, IOperation argument2)
7068
{
@@ -79,7 +77,7 @@ public SubtractionOperation(IOperation argument1, IOperation argument2)
7977
public IOperation Argument2 { get; }
8078
}
8179

82-
internal class DivisionOperation : IOperation
80+
public class DivisionOperation : IOperation
8381
{
8482
public DivisionOperation(IOperation dividend, IOperation divisor)
8583
{
@@ -94,7 +92,7 @@ public DivisionOperation(IOperation dividend, IOperation divisor)
9492
public IOperation Divisor { get; }
9593
}
9694

97-
internal class MultiplicationOperation : IOperation
95+
public class MultiplicationOperation : IOperation
9896
{
9997
public MultiplicationOperation(IOperation argument1, IOperation argument2)
10098
{
@@ -109,7 +107,7 @@ public MultiplicationOperation(IOperation argument1, IOperation argument2)
109107
public IOperation Argument2 { get; }
110108
}
111109

112-
internal class ModuleOffsetOperation : IOperation
110+
public class ModuleOffsetOperation : IOperation
113111
{
114112
public ModuleOffsetOperation(string name)
115113
{

‎ReClass.NET/AddressParser/ParseException.cs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// Design taken from https://github.com/pieterderycke/Jace
2-
3-
using System;
1+
using System;
42

53
namespace ReClassNET.AddressParser
64
{
7-
class ParseException : Exception
5+
public class ParseException : Exception
86
{
97
public ParseException(string message)
108
: base(message)

‎ReClass.NET/AddressParser/Token.cs‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// Design taken from https://github.com/pieterderycke/Jace
2-
3-
using System.Diagnostics.Contracts;
1+
using System.Diagnostics.Contracts;
42

53
namespace ReClassNET.AddressParser
64
{
7-
internal enum TokenType
5+
public enum TokenType
86
{
97
Offset,
108
ModuleOffset,
@@ -14,7 +12,7 @@ internal enum TokenType
1412
ReadPointer
1513
}
1614

17-
internal class Token
15+
public class Token
1816
{
1917
/// <summary>The type of the token.</summary>
2018
public TokenType TokenType { get; }

‎ReClass.NET/AddressParser/TokenReader.cs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// Design taken from https://github.com/pieterderycke/Jace
2-
3-
using System;
1+
using System;
42
using System.Collections.Generic;
53
using System.Diagnostics.Contracts;
64
using System.Globalization;
@@ -9,7 +7,7 @@
97

108
namespace ReClassNET.AddressParser
119
{
12-
class TokenReader
10+
public class TokenReader
1311
{
1412
/// <summary>
1513
/// Read in the provided formula and convert it into a list of takens that can be processed by the

0 commit comments

Comments
 (0)