mirror of
https://github.com/Cekis/SWG-ScriptConverter.git
synced 2026-07-13 20:00:56 -04:00
20 lines
465 B
C#
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);
|
|
}
|
|
}
|
|
}
|