Files
SWG-ScriptConverter/ScriptConverter/Parser/Parselets/Expressions/StringParselet.cs
T
2019-01-23 22:52:45 -05:00

20 lines
465 B
C#

using ScriptConverter.Ast.Expressions;
namespace ScriptConverter.Parser.Parselets.Expressions
{
class StringParselet : IPrefixParselet
{
private readonly bool _singleQuote;
public StringParselet(bool singleQuote)
{
_singleQuote = singleQuote;
}
public Expression Parse(ScriptParser parser, ScriptToken token)
{
return new StringExpression(token, _singleQuote);
}
}
}