mirror of
https://github.com/Cekis/SWG-ScriptConverter.git
synced 2026-01-16 22:04:29 -05:00
20 lines
520 B
C#
20 lines
520 B
C#
using ScriptConverter.Ast.Expressions;
|
|
|
|
namespace ScriptConverter.Parser.Parselets.Expressions
|
|
{
|
|
class PostfixOperatorParselet : IInfixParselet
|
|
{
|
|
public PostfixOperatorParselet(PrecedenceValue precedence)
|
|
{
|
|
Precedence = (int)precedence;
|
|
}
|
|
|
|
public int Precedence { get; private set; }
|
|
|
|
public Expression Parse(ScriptParser parser, Expression left, ScriptToken token)
|
|
{
|
|
return new PostfixOperatorExpression(token, left);
|
|
}
|
|
}
|
|
}
|