15 function cViewStmt(
byval is_func
as integer)
as ASTNODE
ptr
16 dim as ASTNODE
ptr expr1, expr2
17 dim as integer default_view, default_view_value
21 default_view = is_func
22 default_view_value =
iif(is_func,-1,0)
33 if( is_func = FALSE )
then
35 if( expr1 <> NULL )
then
36 if(
hMatch( FB_TK_TO ) = FALSE )
then
40 hMatchExpressionEx( expr2, FB_DATATYPE_INTEGER )
46 if( default_view )
then
56 if (is_func = FALSE)
then
63 function cWidthStmt(
byval isfunc
as integer)
as ASTNODE
ptr
64 dim as ASTNODE
ptr fnum, width_arg, height_arg, dev_name
65 dim as integer checkrprnt
74 checkrprnt =
hMatch( CHAR_LPRNT )
81 if( checkrprnt = FALSE )
then
84 elseif(
hMatch( CHAR_RPRNT ) )
then
89 if(
hMatch( FB_TK_LPRINT ) )
then
92 hMatchExpressionEx( width_arg, FB_DATATYPE_INTEGER )
94 function =
rtlWidthDev( dev_name, width_arg, isfunc )
96 elseif(
hMatch( CHAR_SHARP ) )
then
99 hMatchExpressionEx( fnum, FB_DATATYPE_INTEGER )
101 if(
hMatch( CHAR_COMMA ) )
then
102 hMatchExpressionEx( width_arg, FB_DATATYPE_INTEGER )
109 elseif(
hMatch( CHAR_COMMA ) )
then
112 hMatchExpressionEx( height_arg, FB_DATATYPE_INTEGER )
116 hMatchExpressionEx( dev_name, FB_DATATYPE_STRING )
119 if(
hMatch( CHAR_COMMA ) )
then
120 hMatchExpressionEx( width_arg, FB_DATATYPE_INTEGER )
124 function =
rtlWidthDev( dev_name, width_arg, isfunc )
131 if(
hMatch( CHAR_COMMA ) )
then
132 hMatchExpressionEx( height_arg, FB_DATATYPE_INTEGER )
141 if( checkrprnt )
then
149 dim as ASTNODE
ptr fore_color, back_color = NULL
158 if(
hMatch( CHAR_LPRNT ) = TRUE )
then
160 if(
hMatch( CHAR_COMMA ) = TRUE )
then
161 hMatchExpression( back_color )
167 if(
hMatch( CHAR_LPRNT ) = TRUE )
then
170 if(
hMatch( CHAR_COMMA ) = TRUE )
then
172 hMatchExpression( back_color )
177 if(
hMatch( CHAR_COMMA ) = TRUE )
then
178 hMatchExpression( back_color )
184 if(
hMatch( CHAR_COMMA ) = TRUE )
then
185 hMatchExpression( back_color )
190 function =
rtlColor( fore_color, back_color, isfunc )
203 dim as integer match_paren = FALSE
204 dim as ASTNODE
ptr yexpr = NULL
213 if( yexpr = NULL )
then
217 dim as ASTNODE
ptr xexpr, fexpr
219 hMatchExpressionEx( xexpr, FB_DATATYPE_INTEGER )
221 if(
hMatch( CHAR_COMMA ) )
then
222 hMatchExpressionEx( fexpr, FB_DATATYPE_INTEGER )
227 if( match_paren )
then