nmat.pas 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. $Id$
  3. Copyright (c) 2000 by Florian Klaempfl
  4. Type checking and register allocation for math nodes
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit ncal;
  19. interface
  20. uses
  21. node,symtable;
  22. type
  23. tmoddivnode = class(tbinopnode)
  24. end;
  25. tshlshrnode = class(tbinopnode)
  26. end;
  27. tunaryminusnode = class(tunarynode)
  28. constructor create(expr : tnode);virtual;
  29. end;
  30. tnotnode = class(tunarynode)
  31. constructor create(expr : tnode);virtual;
  32. end;
  33. var
  34. cmoddivnode : class of tmoddivnode;
  35. cshlshrnode : class of tshlshrnode;
  36. cunaryminusnode : class of tunaryminusnode;
  37. cnotnode : class of cnotnode;
  38. implementation
  39. {****************************************************************************
  40. TMODDIVNODE
  41. ****************************************************************************}
  42. {****************************************************************************
  43. TSHLSHRNODE
  44. ****************************************************************************}
  45. {****************************************************************************
  46. TUNARYMINUSNODE
  47. ****************************************************************************}
  48. constructor tnotnode.create(expr : tnode);
  49. begin
  50. inherited create(notn,expr);
  51. end;
  52. {****************************************************************************
  53. TNOTNODE
  54. ****************************************************************************}
  55. constructor tnotnode.create(expr : tnode);
  56. begin
  57. inherited create(notn,expr);
  58. end;
  59. begin
  60. cmoddivnode:=tmoddivnode;
  61. cshlshrnode:=tshlshrnode;
  62. cunaryminusnode:=tunaryminusnode;
  63. cnotnode:=tnotnode;
  64. end.
  65. {
  66. $Log$
  67. Revision 1.1 2000-09-20 21:35:12 florian
  68. * initial revision
  69. }