Sets the precedence of all operators at one time. An array of arrays of
key codes of operators is used to set the table operators with the same
precedence are grouped together and listed from tighter binding to loose
binding.
Namespace:
SingularSys.JepExamples
CopyC#
SetPrecedenceTable(new int[][] { { OP_NEGATE, OP_UPLUS, OP_NOT }, { OP_POWER }, { OP_MULTIPLY, OP_DIVIDE, OP_MOD, OP_DOT, OP_CROSS }, { OP_ADD, OP_SUBTRACT }, { OP_LT, OP_LE, OP_GT, OP_GE }, { OP_EQ, OP_NE }, { OP_AND }, { OP_OR }, { OP_ASSIGN }, });
Assembly: Jep (in Jep.dll) Version: 1.1.0.0 (1.0.0)
Syntax
C# |
---|
public bool SetPrecedenceTable( int[][] precArray ) |
Visual Basic (Declaration) |
---|
Public Function SetPrecedenceTable ( _ precArray As Integer()() _ ) As Boolean |
Visual C++ |
---|
public: bool SetPrecedenceTable( array<array<int>^>^ precArray ) |
Parameters
- precArray
- Type: array<
array<
System..::.Int32
>[]()[]
>[]()[]