Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support C# #153

Merged
merged 17 commits into from
Sep 1, 2019
4 changes: 2 additions & 2 deletions atcodertools/codegen/code_generators/cs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _loop_header(var: Variable, for_second_index: bool):
) + "{"


class NimCodeGenerator:
class CsharpCodeGenerator:
chaemon marked this conversation as resolved.
Show resolved Hide resolved

def __init__(self,
format_: Optional[Format[Variable]],
Expand Down Expand Up @@ -164,7 +164,7 @@ class NoPredictionResultGiven(Exception):


def main(args: CodeGenArgs) -> str:
code_parameters = NimCodeGenerator(
code_parameters = CSharpCodeGenerator(
args.format, args.config).generate_parameters()
return render(
args.template,
Expand Down
2 changes: 1 addition & 1 deletion atcodertools/common/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def from_name(cls, name: str):

CSHARP = Language(
name="cs",
display_name="CS",
display_name="C#",
extension="cs",
submission_lang_pattern=re.compile(".*C# \\(Mono.*"),
default_code_generator=cs.main,
Expand Down