ParsingSmbs.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. // needed for parser and scanner
  13. extern int yylex(void);
  14. extern void yyerror(char *s);
  15. extern int syyparse(void);
  16. extern void syyrestart(FILE *f);
  17. #define YY_NEVER_INTERACTIVE 1
  18. #define SMC_MAX_INCLUDE_LEVEL 32
  19. // temporary values for parsing
  20. extern INDEX _yy_iIndex;
  21. extern CModelInstance *_yy_mi;
  22. void SMCPushBuffer(const char *strName, const char *strBuffer, BOOL bParserEnd);
  23. BOOL SMCPopBuffer(void);
  24. const char *SMCGetBufferName(void);
  25. int SMCGetBufferLineNumber(void);
  26. const char *SMCGetBufferContents(void);
  27. int SMCGetBufferStackDepth(void);
  28. void SMCCountOneLine(void);