Skip to content

Commit

Permalink
Merge pull request #5 from AliceNovel/Lemon73-Computing/issue2
Browse files Browse the repository at this point in the history
Create Sample Code for usage
  • Loading branch information
Lemon73-Computing authored Mar 4, 2024
2 parents df728ef + d6bdb39 commit f1400f6
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Alice-Console.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AnovReader", "AnovReader\AnovReader.csproj", "{B0401C3C-0DD7-4064-9134-CBB7F68AE63F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample", "Sample\Sample.csproj", "{BCFC05BD-904F-4C84-B160-D88DF9E62401}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -18,5 +20,9 @@ Global
{B0401C3C-0DD7-4064-9134-CBB7F68AE63F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B0401C3C-0DD7-4064-9134-CBB7F68AE63F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B0401C3C-0DD7-4064-9134-CBB7F68AE63F}.Release|Any CPU.Build.0 = Release|Any CPU
{BCFC05BD-904F-4C84-B160-D88DF9E62401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BCFC05BD-904F-4C84-B160-D88DF9E62401}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BCFC05BD-904F-4C84-B160-D88DF9E62401}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BCFC05BD-904F-4C84-B160-D88DF9E62401}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion AnovReader/Anov.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace AnovReader;

public class Anov
{
static void Read(string str)
public static void Read(string str)
{
Match match;
// "- "から始まる"人物"を読み込み
Expand Down
8 changes: 8 additions & 0 deletions Sample/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using AnovReader;

// input test that is written in Anov Syntax.
string input_1 = "- a girl";
string input_2 = "[Hello, World!]";

Anov.Read(input_1);
Anov.Read(input_2);
14 changes: 14 additions & 0 deletions Sample/Sample.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\AnovReader\AnovReader.csproj" />
</ItemGroup>

</Project>

0 comments on commit f1400f6

Please sign in to comment.