Revision 1604

trunk/tests/xml/tpl2cpp.lex (revision 1604)
1
%option noyywrap
2

  
3
%{
4
  /**
5
   *
6
   * $Id: tpl2cpp.lex 945 2011-01-12 23:03:57Z johnoel $
7
   *
8
   * Author: David Fournier
9
   * Copyright (c) 2008-2012 Regents of the University of California
10
   */
11

  
12
  #define   MAX_TMP_STRING  501
13
  #define   MAX_USER_CLASSES  501
14
  #define   MAX_USER_CLASSNAME_LENGTH  251
15
  #define   MAX_PRIOR_CHECK  1000
16
  #define   MAX_LIKE_CHECK  2000
17
  #include <stdlib.h>
18
  #include <string.h>
19
  #include <stdio.h>
20
  #if defined(_WIN32)
21
  #include <io.h>  //fopen
22
  #endif
23
  #include <ctype.h> /* isalnum */
24
  char tmp_string[MAX_TMP_STRING];
25
  char tmp_string1[MAX_TMP_STRING];
26
  char tmp_string2[MAX_TMP_STRING];
27
  char tmp_string3[MAX_TMP_STRING];
28
  char tmp_string4[MAX_TMP_STRING];
29
  char tmp_string5[MAX_TMP_STRING];
30
  char objective_function_name_string[MAX_TMP_STRING];
31
  char reference_statements[MAX_USER_CLASSES][MAX_USER_CLASSNAME_LENGTH];
32

  
33
  char class_instances[MAX_USER_CLASSES][MAX_USER_CLASSNAME_LENGTH];
34
  char outcommand[100];
35
  char infile_name[1000];
36
  char infile_root[1000];
37
  char name_string[100];
38
  char outfile_name[1000];
39
  char headerfile_name[100];
40

  
41

  
42
  int  num_spargs=0;
43
  int  pvmslaves_defined=0;
44
  int  splus_debug_flag=0;
45
  int  spnumber_flag=0;
46
  int data_defined=0;
47
  int in_define_data=0;
48
  int debug_flag=0;
49
  int makedll=0;
50
  int makegaussdll=0;
51
  int no_userclass=0;
52
  int bound_flag=1;
53
  int num_user_classes=0;
54
  int final_defined=0;
55
  int top_of_main_defined=0;
56
  int globals_section_defined=0;
57
  int in_define_parameters=0;
58
  int talk_to_splus=0;
59
  int initialization_defined=0;
60

  
61
  int priors_defined=0;
62
  int prior_done_once=0;
63
  int likelihood_defined=0;
64
  int likelihood_done_once=0;
65
  int procedure_done=0;
66
  int likelihood_done=0;
67
  int priors_done=0;
68
  int prior_function_toggle=0;
69
  char prior_checker[MAX_PRIOR_CHECK][100];//container hold all parameters which being used for check the prior
70
  int prior_counter=0; //index for prior_checker
71
  int prior_found=0;
72
  char likelihood_checker[MAX_LIKE_CHECK][100];
73
  int likelihood_counter=0; //index for likelihood_checker
74
  int likelihood_found=0;
75

  
76
  int objective_function_defined=0;
77
  int report_defined=0;
78
  int preliminary_calcs_defined=0;
79
  int between_phases_defined=0;
80
  int needs_initialization=0;
81
  int errcopy=1;
82
  int params_defined=0;
83
  int runtime_defined=0;
84
  int procedure_defined=0;
85
  int in_procedure_def=0;
86
  int in_aux_proc=0;
87
  int nline=1;
88
  int have_likeprof=0;
89
  int num_paren=0;
90
  int nchar=0;
91
  int warn_unallocated=1;
92
  char *  conlist_ptr;
93
  char conlist[6000];
94
  char *  classlist_ptr;
95
  char classlist[6000];
96
  char *  arglist1_ptr;
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff