diff options
| author | Joel Martin <github@martintribe.org> | 2014-11-15 20:38:50 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-01-09 16:16:46 -0600 |
| commit | c3b508af92800f63bf99f41af68f026535f454f5 (patch) | |
| tree | e94c4f555375189c69cebada164afba80f2579bd /cs/reader.cs | |
| parent | 95ec2d81d8661e56b7b98a1c19ad503c5083c1e4 (diff) | |
| download | mal-c3b508af92800f63bf99f41af68f026535f454f5.tar.gz mal-c3b508af92800f63bf99f41af68f026535f454f5.zip | |
C#: use closure for RE func. Shorter type names.
Diffstat (limited to 'cs/reader.cs')
| -rw-r--r-- | cs/reader.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cs/reader.cs b/cs/reader.cs index 8ab53da..dbc74af 100644 --- a/cs/reader.cs +++ b/cs/reader.cs @@ -61,7 +61,7 @@ namespace Mal { throw new ParseError("unrecognized token '" + token + "'"); } if (match.Groups[1].Value != String.Empty) { - return new Mal.types.MalInteger(int.Parse(match.Groups[1].Value)); + return new Mal.types.MalInt(int.Parse(match.Groups[1].Value)); } else if (match.Groups[3].Value != String.Empty) { return Mal.types.Nil; } else if (match.Groups[4].Value != String.Empty) { |
