Skip to content

Commit

Permalink
Rename the project to MagesScriptTool
Browse files Browse the repository at this point in the history
  • Loading branch information
BoilingTeapot committed Aug 25, 2024
1 parent e92f64f commit c808765
Show file tree
Hide file tree
Showing 54 changed files with 60 additions and 60 deletions.
16 changes: 8 additions & 8 deletions mgsscripttool.sln → magesscripttool.sln
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{34D192E3-71FB-4FF2-A3A1-9C48832A79C8}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{82C51C1E-089D-4669-AE5D-4F733372E8CA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MgsScriptTool", "src\MgsScriptTool\MgsScriptTool.csproj", "{9C7EE04F-2A3C-48FC-99C3-415DFC4F4D0D}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MagesScriptTool", "src\MagesScriptTool\MagesScriptTool.csproj", "{D27FE6F2-5D97-4BC4-B59B-4A9C158C866B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -16,12 +16,12 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9C7EE04F-2A3C-48FC-99C3-415DFC4F4D0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9C7EE04F-2A3C-48FC-99C3-415DFC4F4D0D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9C7EE04F-2A3C-48FC-99C3-415DFC4F4D0D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9C7EE04F-2A3C-48FC-99C3-415DFC4F4D0D}.Release|Any CPU.Build.0 = Release|Any CPU
{D27FE6F2-5D97-4BC4-B59B-4A9C158C866B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D27FE6F2-5D97-4BC4-B59B-4A9C158C866B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D27FE6F2-5D97-4BC4-B59B-4A9C158C866B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D27FE6F2-5D97-4BC4-B59B-4A9C158C866B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{9C7EE04F-2A3C-48FC-99C3-415DFC4F4D0D} = {34D192E3-71FB-4FF2-A3A1-9C48832A79C8}
{D27FE6F2-5D97-4BC4-B59B-4A9C158C866B} = {82C51C1E-089D-4669-AE5D-4F733372E8CA}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class CompiledScript {
public readonly ImmutableArray<byte> Code;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class CompiledScriptPackage {
public readonly CompiledScript Script;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Immutable;
using System.Text;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class CompiledScriptPackageEncoding {
static readonly ImmutableArray<byte> Magic = [..Encoding.ASCII.GetBytes("SC3\0")];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class CompiledStringEncoding {
readonly StringTagsSpec _spec;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Immutable;
using System.Text;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class CompiledStringTableEncoding {
static readonly ImmutableArray<byte> Magic = [..Encoding.Latin1.GetBytes("MES\0")];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Immutable;
using System.Diagnostics;

namespace MgsScriptTool;
namespace MagesScriptTool;

static class ExpressionEncoding {
public static void Encode(Stream stream, ExpressionNode expression) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

abstract class ExpressionNode {
public virtual int GetInt() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class ExpressionNodeBlank : ExpressionNode {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class ExpressionNodeIdentifier : ExpressionNode {
public readonly string Name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class ExpressionNodeNumber : ExpressionNode {
public readonly int Value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class ExpressionNodeOperation : ExpressionNode {
public readonly OperatorKind Kind;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Diagnostics;
using System.Text;

namespace MgsScriptTool;
namespace MagesScriptTool;

static class ExpressionSyntax {
public static void Format(StringBuilder builder, ExpressionNode expression) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

abstract class ExpressionToken {
public abstract bool IsLowerThan(int priority);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

static class ExpressionTokenListEncoding {
public static void Encode(Stream stream, ImmutableArray<ExpressionToken> tokens) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class ExpressionTokenLiteral : ExpressionToken {
public readonly int Value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class ExpressionTokenOperator : ExpressionToken {
public readonly int Opcode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

class GlyphSpec {
public readonly int Index;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class ImmutableTree<K, V> where K : notnull {
readonly ImmutableDictionary<K, ImmutableTree<K, V>> _branches;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class Instruction {
public readonly string Name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class InstructionEncoding {
readonly ImmutableTree<byte, InstructionSpec> _tree;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class InstructionSpec {
public readonly string Name;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

enum OperandKind {
Expr,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

enum OperatorKind {
Mul,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class OperatorSpec {
public readonly OperatorKind Kind;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class OperatorsSpec {
static readonly Dictionary<OperatorKind, OperatorSpec> _byKind = [];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

class ParseUtils {
public static bool TrySkip(TextStream reader, char c) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

class ParsingException : Exception {
public ParsingException(string message) : base(message) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.CommandLine.Parsing;
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

static class Program {
static readonly Option<ToolMode> ModeOption = new(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class ScriptCompiler {
readonly InstructionEncoding _instructionEncoding;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class ScriptDecompiler {
readonly InstructionEncoding _instructionEncoding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text.Json;
using YamlDotNet.Serialization;

namespace MgsScriptTool;
namespace MagesScriptTool;

class SpecBank {
readonly string _path;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class StringGlyphSyntax {
readonly ImmutableTree<char, GlyphSpec> _regularTree;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class StringTableEntry {
public readonly int Index;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

enum StringTagKind {
Newline, // break line
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class StringTagSpec {
public readonly string Name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class StringTagsSpec {
readonly Dictionary<string, StringTagSpec> _byName = [];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

abstract class StringToken {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class StringTokenChunk : StringToken {
public readonly string Value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class StringTokenGlyph : StringToken {
public readonly int Value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class StringTokenTag : StringToken {
public readonly string Name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class TextStream {
readonly string _data;
Expand Down
2 changes: 1 addition & 1 deletion src/MgsScriptTool/Tree.cs → src/MagesScriptTool/Tree.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class Tree<K, V> where K : notnull {
readonly Dictionary<K, Tree<K, V>> _branches = [];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

abstract class UncompiledScriptElement {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class UncompiledScriptElementComment : UncompiledScriptElement {
public readonly string Text;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class UncompiledScriptElementError : UncompiledScriptElement {
public readonly int Position;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class UncompiledScriptElementInstruction : UncompiledScriptElement {
public readonly Instruction Value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class UncompiledScriptElementLabel : UncompiledScriptElement {
public readonly int Index;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class UncompiledScriptElementRaw : UncompiledScriptElement {
public readonly ImmutableArray<byte> Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class UncompiledScriptElementReturnLabel : UncompiledScriptElement {
public readonly int Index;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Diagnostics;
using System.Text;

namespace MgsScriptTool;
namespace MagesScriptTool;

static class UncompiledScriptSyntax {
public static void Format(StringBuilder builder, StringBuilder? sdbBuilder, ImmutableDictionary<UncompiledScriptElementInstruction, int> instructionPositions, ImmutableArray<UncompiledScriptElement> elements) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Diagnostics;
using System.Text;

namespace MgsScriptTool;
namespace MagesScriptTool;

sealed class UncompiledStringSyntax {
public UncompiledStringSyntax() { }
Expand Down
Loading

0 comments on commit c808765

Please sign in to comment.