mirror of
https://github.com/Cekis/SWG-ScriptConverter.git
synced 2026-09-11 22:44:59 -04:00
Add code
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user