types.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*******************************************************************************
  2. AToMPM - A Tool for Multi-Paradigm Modelling
  3. Copyright (c) 2011 Raphael Mannadiar (raphael.mannadiar@mail.mcgill.ca)
  4. This file is part of AToMPM.
  5. AToMPM is free software: you can redistribute it and/or modify it under the
  6. terms of the GNU Lesser General Public License as published by the Free Software
  7. Foundation, either version 3 of the License, or (at your option) any later
  8. version.
  9. AToMPM is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  11. PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public License along
  13. with AToMPM. If not, see <http://www.gnu.org/licenses/>.
  14. *******************************************************************************/
  15. __specialTypes = {
  16. '$ATTRIBUTE':'map<[name,type,default],[string,string,string]>',
  17. '$CARDINALITY':'map<[dir,type,min,max],[string,string,string,string]>',
  18. '$EVENT':'ENUM(pre-connect,pre-create,pre-disconnect,pre-delete,pre-edit,post-connect,post-create,post-disconnect,post-delete,post-edit)',
  19. '$EVENT_HANDLER':'map<[name,event,code],[string,$EVENT,code]>',
  20. '$ARG':'map<[name,type],[string,string]>',
  21. '$METHOD':'map<[name,args,returntype,body],[string,list<$ARG>,string,code]>'
  22. }