C# Class MpcLib.Common.FiniteField.Circuits.BigParser

Mostrar archivo Open project: mahdiz/mpclib

Public Methods

Method Description
BigParser ( FunctionType type, int numPlayers, System.Numerics.BigInteger prime ) : System
BigParser ( string pathOrString, System.Numerics.BigInteger prime ) : System
CreateCircuit ( System.Numerics.BigInteger prime, IList inputs ) : BigCircuit
Parse ( ) : void

Private Methods

Method Description
BuildCircuitDef ( FunctionType type, int numPlayers ) : string
CheckParanthesisSyntax ( string line ) : void
CheckVariableSynthax ( string @var ) : void
CreateAddGates ( string line, BigWire firstWire ) : BigWire
CreateEqualsGate ( string line ) : BigWire
CreateEqualsGate ( string line, BigWire firstWire ) : BigWire
CreateMulGate ( BigWire firstWireOrNull, System.Operation firstOpOrNull, string line ) : BigWire
CreateMulGates ( BigWire firstWireOrNull, System.Operation firstOpOrNull, string line ) : BigWire
CreateParenthesesWire ( string line, bool keepCalculating ) : BigWire
FindCorrectIndex ( string line, SearchFor searchFor ) : int
FindEndingParantheses ( string line ) : int
GetFirstParamterIndex ( string line ) : int
GetFixedIndex ( int index ) : int
GetIndexOfMinusOrPlus ( string line, int fromIndex ) : int
GetLineType ( string line ) : LineType
GetOperation ( string str ) : System.Operation
GetWireFromCondition ( string line ) : BigWire
GetWireFromCondition ( string line, BigWire conditionWire ) : BigWire
GetWireFromExpression ( string line ) : BigWire
GetWireFromString ( string st ) : BigWire
IsTargetInGates ( IList gates, BigWire outputWire ) : bool
ReadFormula ( string line ) : bool
ReadInputOutputDecleration ( string line, bool isInput ) : bool
ReadLine ( string line ) : void
SetGate ( IList inputWires, BigWire outputWire, System.Operation op ) : void
SplitMul ( string line, IList operands, IList operations ) : void
getIndexOfDivOrMul ( string line, int fromIndex ) : int

Method Details

BigParser() public method

public BigParser ( FunctionType type, int numPlayers, System.Numerics.BigInteger prime ) : System
type FunctionType
numPlayers int
prime System.Numerics.BigInteger
return System

BigParser() public method

public BigParser ( string pathOrString, System.Numerics.BigInteger prime ) : System
pathOrString string
prime System.Numerics.BigInteger
return System

CreateCircuit() public method

public CreateCircuit ( System.Numerics.BigInteger prime, IList inputs ) : BigCircuit
prime System.Numerics.BigInteger
inputs IList
return BigCircuit

Parse() public method

public Parse ( ) : void
return void