Changeset 038a9a4 in tol


Ignore:
Timestamp:
Feb 15, 2012, 1:50:27 PM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
7ac88ca
Parents:
e679c37
Message:

Refs #1431
Implements referential structs

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4137 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/lang/language.cpp

    re679c37 r038a9a4  
    123123BGrammar* GraNameBlock() { return(BUserNameBlock  ::OwnGrammar()); }
    124124
     125static BStruct* _str_ref_Anything  = NULL;
     126static BStruct* _str_ref_Code      = NULL;
     127static BStruct* _str_ref_Date      = NULL;
     128static BStruct* _str_ref_Polyn     = NULL;
     129static BStruct* _str_ref_Ratio     = NULL;
     130static BStruct* _str_ref_Real      = NULL;
     131static BStruct* _str_ref_Complex   = NULL;
     132static BStruct* _str_ref_Matrix    = NULL;
     133static BStruct* _str_ref_VMatrix   = NULL;
     134static BStruct* _str_ref_Set       = NULL;
     135static BStruct* _str_ref_NameBlock = NULL;
     136static BStruct* _str_ref_Text      = NULL;
     137static BStruct* _str_ref_TimeSet   = NULL;
     138static BStruct* _str_ref_Serie     = NULL;
     139
     140BStruct* RefAnything()  { return(_str_ref_Anything); }
     141BStruct* RefCode()      { return(_str_ref_Code); }
     142BStruct* RefDate()      { return(_str_ref_Date); }
     143BStruct* RefPolyn()     { return(_str_ref_Polyn); }
     144BStruct* RefRatio()     { return(_str_ref_Ratio); }
     145BStruct* RefReal()      { return(_str_ref_Real); }
     146BStruct* RefComplex()   { return(_str_ref_Complex); }
     147BStruct* RefMatrix()    { return(_str_ref_Matrix); }
     148BStruct* RefVMatrix()   { return(_str_ref_VMatrix); }
     149BStruct* RefSet()       { return(_str_ref_Set); }
     150BStruct* RefNameBlock() { return(_str_ref_NameBlock); }
     151BStruct* RefText()      { return(_str_ref_Text); }
     152BStruct* RefTimeSet()   { return(_str_ref_TimeSet); }
     153BStruct* RefSerie()     { return(_str_ref_Serie); }
     154
     155//--------------------------------------------------------------------
     156bool InitRefStructs()
     157//--------------------------------------------------------------------
     158{
     159  if(_str_ref_Anything) { return(false); }
     160  _str_ref_Anything = NewStructSymbol("@Anything","Anything:V");
     161  _str_ref_Code = NewStructSymbol("@Code","Code:V");
     162  _str_ref_Date = NewStructSymbol("@Date","Date:V");
     163  _str_ref_Polyn = NewStructSymbol("@Polyn","Polyn:V");
     164  _str_ref_Ratio = NewStructSymbol("@Ratio","Ratio:V");
     165  _str_ref_Real = NewStructSymbol("@Real","Real:V");
     166  _str_ref_Complex = NewStructSymbol("@Complex","Complex:V");
     167  _str_ref_Matrix = NewStructSymbol("@Matrix","Matrix:V");
     168  _str_ref_VMatrix = NewStructSymbol("@VMatrix","VMatrix:V");
     169  _str_ref_Set = NewStructSymbol("@Set","Set:V");
     170  _str_ref_NameBlock = NewStructSymbol("@NameBlock","NameBlock:V");
     171  _str_ref_Text = NewStructSymbol("@Text","Text:V");
     172  _str_ref_TimeSet = NewStructSymbol("@TimeSet","TimeSet:V");
     173  _str_ref_Serie = NewStructSymbol("@Serie","Serie:V");
     174}
    125175
    126176
Note: See TracChangeset for help on using the changeset viewer.