Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilKleistGao committed Jan 24, 2025
1 parent 0ee0a99 commit 18e52bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/Parser/ParseResults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class BoolLiteral<TRes, TEnv> : Literal<TRes, TEnv> {
}

public abstract class StringLiteral<TRes, TEnv> : Literal<TRes, TEnv> {
public string Value { get; set; }
public string? Value { get; set; }
}

public abstract class Symbol<TRes, TEnv>: IEvaluatable<TRes, TEnv> {
Expand Down
2 changes: 1 addition & 1 deletion Src/Runtime/EvaluationNodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public EvalBoolLit(bool b) {

public class EvalStringLit: StringLiteral<Value, Environment> {
public override Value Evaluate(Environment env) {
return new LiteralValue<string>(Value);
return new LiteralValue<string>(Value??"");
}

public EvalStringLit(string s) {
Expand Down

0 comments on commit 18e52bb

Please sign in to comment.