https://github.com/exercism/csharp-representer
https://github.com/exercism/csharp-representer
community-contributions-paused exercism-representer exercism-tooling maintained-autonomous
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/exercism/csharp-representer
- Owner: exercism
- License: mit
- Created: 2019-10-08T19:49:57.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T01:56:43.000Z (3 months ago)
- Last Synced: 2025-04-29T07:23:36.854Z (about 1 month ago)
- Topics: community-contributions-paused, exercism-representer, exercism-tooling, maintained-autonomous
- Language: C#
- Size: 323 KB
- Stars: 1
- Watchers: 9
- Forks: 5
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Exercism C# representer
A [representer][representer-introduction] creates a general representation of a submission, in order to automatically give feedback on similar code.
This repository contains the C# representer, which implements the [representer interface][representer-interface]. It uses [Roslyn][roslyn] to parse the submission's source code into syntax trees, which are then normalized and output as a representation.
## Generate a representation for a solution
To create a representation of a solution, follow these steps:
1. Open a command prompt in the root directory.
1. Run `./bin/run.sh `. This script will generate a representation for the solution found in ``.
1. Once the script has completed, the representation will be written to `/representation.txt`.## Generate a representation for a solution using Docker
To generate a representation for a solution using a Docker container, follow these steps:
1. Open a command prompt in the root directory.
1. Run `./bin/run-in-docker.sh `. This script will:
1. Build the representer Docker image (if necessary).
1. Run the representer Docker image (as a container), passing the specified `exercise`, `input-directory` and `output-directory` arguments.
1. Once the script has completed, the representation can be found at `/representation.txt`.[representer-introduction]: https://github.com/exercism/automated-analysis/blob/master/docs/representers/introduction.md
[representer-interface]: https://github.com/exercism/automated-analysis/blob/master/docs/representers/interface.md
[roslyn]: https://docs.microsoft.com/nl-nl/dotnet/csharp/roslyn-sdk/