mirror of
https://github.com/Cekis/SWG-ScriptConverter.git
synced 2026-01-16 22:04:29 -05:00
20 lines
429 B
C#
20 lines
429 B
C#
using ScriptConverter.Ast.Expressions;
|
|
|
|
namespace ScriptConverter.Parser.Parselets.Expressions
|
|
{
|
|
class BoolParselet : IPrefixParselet
|
|
{
|
|
private readonly bool _value;
|
|
|
|
public BoolParselet(bool value)
|
|
{
|
|
_value = value;
|
|
}
|
|
|
|
public Expression Parse(ScriptParser parser, ScriptToken token)
|
|
{
|
|
return new BoolExpression(token, _value);
|
|
}
|
|
}
|
|
}
|