-
Notifications
You must be signed in to change notification settings - Fork 1
Newton API specs
The following will go into the header file for Newton API.
// void listOfProportionalPairs(Pair *pairs);
// Don't think I need this... the caller should call checkSingleCosntraint at
// appropriate times
// COMPILE OR RUN TIME METHODS
Physics* getPhysics(char* physicsIdentifierString);
Report* checkSingleConstraint(NewtonIrNode* subtreeRoot);
// SANITY MEHTODS
NewtonIrNode* getAST();
Dimension* getAllDimensions();
Dimension* getDimensionByName(char * dimensionName);
Physics* getAllPhysics();
Physics* getPhysicsByName(char * physicsName);
NewtonIrNode should have dimension, physics, values, type, source info, .. just reuse NoisyIrNode minus all the scope nodes
For the Newton Standard AST, we will just reuse NoisyIrNode minus all the scope nodes NewtonIrNode should have dimension, physics, values, type, source info, ..