diff options
author | Daniel Smith <rdnlsmith@gmail.com> | 2020-11-28 21:24:40 -0500 |
---|---|---|
committer | Daniel Smith <rdnlsmith@gmail.com> | 2020-11-28 21:24:40 -0500 |
commit | df8253dbf6cb09093018333f99dd9c19ba0ff02b (patch) | |
tree | 455776153a088e3bf164bc390813043a7cbe8520 /.vscode |
Initial commit
`Tokenizer` can _just barely_ parse a basic, well-formed move list.
Initially, I wanted to provide the movetext as a `Stream` rather than a
string, the idea being that it could be processed as it was being read
from a file without having to read the entire file into memory first. I
had difficulties with the stream being unreadable in
`Tokenizer.ParseMoves()`, so I switched to a string in order to get the
actual parsing logic down first.
Because of the `yield return` strategy, the debug console output
includes all of the expected halfmoves multiple times in various orders.
After running a test, generally the full, in-order list seems to exist
at the bottom of the output.
Diffstat (limited to '.vscode')
-rw-r--r-- | .vscode/launch.json | 27 | ||||
-rw-r--r-- | .vscode/tasks.json | 42 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..6908dfa --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,27 @@ +{ + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "version": "0.2.0", + "configurations": [ + { + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/DotnetPgn.Test/bin/Debug/net5.0/DotnetPgn.Test.dll", + "args": [], + "cwd": "${workspaceFolder}/DotnetPgn.Test", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}" + } + ] +}
\ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..60924e5 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/DotnetPgn.Test/DotnetPgn.Test.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/DotnetPgn.Test/DotnetPgn.Test.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "${workspaceFolder}/DotnetPgn.Test/DotnetPgn.Test.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + } + ] +}
\ No newline at end of file |