1 /* YACC grammar for Modula-2 expressions, for GDB.
2 Copyright (C) 1986, 1989, 1990, 1991, 1993, 1994, 1995
3 Free Software Foundation, Inc.
4 Generated from expread.y (now c-exp.y) and contributed by the Department
5 of Computer Science at the State University of New York at Buffalo, 1991.
7 This file is part of GDB.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
23 /* Parse a Modula-2 expression from text in a string,
24 and return the result as a struct expression pointer.
25 That structure contains arithmetic operations in reverse polish,
26 with constants represented by operations that are followed by special data.
27 See expression.h for the details of the format.
28 What is important here is that it can be built up sequentially
29 during the process of parsing; the lower levels of the tree always
30 come first in the result.
32 Note that malloc's and realloc's in this file are transformed to
33 xmalloc and xrealloc respectively by the same sed command in the
34 makefile that remaps any other malloc/realloc inserted by the parser
35 generator. Doing this with #defines and trying to control the interaction
36 with include files (<malloc.h> and <stdlib.h> for example) just became
37 too messy, particularly when such includes can be inserted at random
38 times by the parser generator. */
44 #include "expression.h"
47 #include "parser-defs.h"
49 #include "bfd.h" /* Required by objfiles.h. */
50 #include "symfile.h" /* Required by objfiles.h. */
51 #include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
53 /* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc),
54 as well as gratuitiously global symbol names, so we can have multiple
55 yacc generated parsers in gdb. Note that these are only the variables
56 produced by yacc. If other parser generators (bison, byacc, etc) produce
57 additional global names that conflict at link time, then those parser
58 generators need to be fixed instead of adding those names to this list. */
60 #define yymaxdepth m2_maxdepth
61 #define yyparse m2_parse
63 #define yyerror m2_error
64 #define yylval m2_lval
65 #define yychar m2_char
66 #define yydebug m2_debug
67 #define yypact m2_pact
74 #define yyexca m2_exca
75 #define yyerrflag m2_errflag
76 #define yynerrs m2_nerrs
81 #define yystate m2_state
86 #define yylloc m2_lloc
87 #define yyreds m2_reds /* With YYDEBUG defined */
88 #define yytoks m2_toks /* With YYDEBUG defined */
89 #define yylhs m2_yylhs
90 #define yylen m2_yylen
91 #define yydefred m2_yydefred
92 #define yydgoto m2_yydgoto
93 #define yysindex m2_yysindex
94 #define yyrindex m2_yyrindex
95 #define yygindex m2_yygindex
96 #define yytable m2_yytable
97 #define yycheck m2_yycheck
100 #define YYDEBUG 0 /* Default to no yydebug support */
104 yyparse PARAMS ((void));
107 yylex PARAMS ((void));
110 yyerror PARAMS ((char *));
114 make_qualname PARAMS ((char *, char *));
118 parse_number PARAMS ((int));
120 /* The sign of the number being parsed. */
121 static int number_sign = 1;
123 /* The block that the module specified by the qualifer on an identifer is
126 static struct block *modblock=0;
131 /* Although the yacc "value" of an expression is not used,
132 since the result is stored in the structure being created,
133 other node types do have values. */
138 unsigned LONGEST ulval;
145 enum exp_opcode opcode;
146 struct internalvar *ivar;
152 %type <voidval> exp type_exp start set
153 %type <voidval> variable
158 %token <lval> INT HEX ERROR
159 %token <ulval> UINT M2_TRUE M2_FALSE CHAR
162 /* Both NAME and TYPENAME tokens represent symbols in the input,
163 and both convey their data as strings.
164 But a TYPENAME is a string that happens to be defined as a typedef
165 or builtin type name (such as int or char)
166 and a NAME is any other symbol.
168 Contexts where this distinction is not important can use the
169 nonterminal "name", which matches either NAME or TYPENAME. */
172 %token <sval> NAME BLOCKNAME IDENT VARNAME
173 %token <sval> TYPENAME
175 %token SIZE CAP ORD HIGH ABS MIN_FUNC MAX_FUNC FLOAT_FUNC VAL CHR ODD TRUNC
176 %token INC DEC INCL EXCL
178 /* The GDB scope operator */
181 %token <lval> LAST REGNAME
183 %token <ivar> INTERNAL_VAR
189 %left '<' '>' LEQ GEQ '=' NOTEQUAL '#' IN
191 %left LOGICAL_AND '&'
194 %left '*' '/' DIV MOD
196 %right '^' DOT '[' '('
199 /* This is not an actual token ; it is used for precedence.
211 { write_exp_elt_opcode(OP_TYPE);
212 write_exp_elt_type($1);
213 write_exp_elt_opcode(OP_TYPE);
219 exp : exp '^' %prec UNARY
220 { write_exp_elt_opcode (UNOP_IND); }
223 { number_sign = -1; }
226 write_exp_elt_opcode (UNOP_NEG); }
229 exp : '+' exp %prec UNARY
230 { write_exp_elt_opcode(UNOP_PLUS); }
233 exp : not_exp exp %prec UNARY
234 { write_exp_elt_opcode (UNOP_LOGICAL_NOT); }
241 exp : CAP '(' exp ')'
242 { write_exp_elt_opcode (UNOP_CAP); }
245 exp : ORD '(' exp ')'
246 { write_exp_elt_opcode (UNOP_ORD); }
249 exp : ABS '(' exp ')'
250 { write_exp_elt_opcode (UNOP_ABS); }
253 exp : HIGH '(' exp ')'
254 { write_exp_elt_opcode (UNOP_HIGH); }
257 exp : MIN_FUNC '(' type ')'
258 { write_exp_elt_opcode (UNOP_MIN);
259 write_exp_elt_type ($3);
260 write_exp_elt_opcode (UNOP_MIN); }
263 exp : MAX_FUNC '(' type ')'
264 { write_exp_elt_opcode (UNOP_MAX);
265 write_exp_elt_type ($3);
266 write_exp_elt_opcode (UNOP_MIN); }
269 exp : FLOAT_FUNC '(' exp ')'
270 { write_exp_elt_opcode (UNOP_FLOAT); }
273 exp : VAL '(' type ',' exp ')'
274 { write_exp_elt_opcode (BINOP_VAL);
275 write_exp_elt_type ($3);
276 write_exp_elt_opcode (BINOP_VAL); }
279 exp : CHR '(' exp ')'
280 { write_exp_elt_opcode (UNOP_CHR); }
283 exp : ODD '(' exp ')'
284 { write_exp_elt_opcode (UNOP_ODD); }
287 exp : TRUNC '(' exp ')'
288 { write_exp_elt_opcode (UNOP_TRUNC); }
291 exp : SIZE exp %prec UNARY
292 { write_exp_elt_opcode (UNOP_SIZEOF); }
296 exp : INC '(' exp ')'
297 { write_exp_elt_opcode(UNOP_PREINCREMENT); }
300 exp : INC '(' exp ',' exp ')'
301 { write_exp_elt_opcode(BINOP_ASSIGN_MODIFY);
302 write_exp_elt_opcode(BINOP_ADD);
303 write_exp_elt_opcode(BINOP_ASSIGN_MODIFY); }
306 exp : DEC '(' exp ')'
307 { write_exp_elt_opcode(UNOP_PREDECREMENT);}
310 exp : DEC '(' exp ',' exp ')'
311 { write_exp_elt_opcode(BINOP_ASSIGN_MODIFY);
312 write_exp_elt_opcode(BINOP_SUB);
313 write_exp_elt_opcode(BINOP_ASSIGN_MODIFY); }
317 { write_exp_elt_opcode (STRUCTOP_STRUCT);
318 write_exp_string ($3);
319 write_exp_elt_opcode (STRUCTOP_STRUCT); }
326 { error("Sets are not implemented.");}
329 exp : INCL '(' exp ',' exp ')'
330 { error("Sets are not implemented.");}
333 exp : EXCL '(' exp ',' exp ')'
334 { error("Sets are not implemented.");}
336 set : '{' arglist '}'
337 { error("Sets are not implemented.");}
338 | type '{' arglist '}'
339 { error("Sets are not implemented.");}
343 /* Modula-2 array subscript notation [a,b,c...] */
345 /* This function just saves the number of arguments
346 that follow in the list. It is *not* specific to
349 non_empty_arglist ']' %prec DOT
350 { write_exp_elt_opcode (MULTI_SUBSCRIPT);
351 write_exp_elt_longcst ((LONGEST) end_arglist());
352 write_exp_elt_opcode (MULTI_SUBSCRIPT); }
356 /* This is to save the value of arglist_len
357 being accumulated by an outer function call. */
358 { start_arglist (); }
359 arglist ')' %prec DOT
360 { write_exp_elt_opcode (OP_FUNCALL);
361 write_exp_elt_longcst ((LONGEST) end_arglist ());
362 write_exp_elt_opcode (OP_FUNCALL); }
372 arglist : arglist ',' exp %prec ABOVE_COMMA
382 : non_empty_arglist ',' exp %prec ABOVE_COMMA
387 exp : '{' type '}' exp %prec UNARY
388 { write_exp_elt_opcode (UNOP_MEMVAL);
389 write_exp_elt_type ($2);
390 write_exp_elt_opcode (UNOP_MEMVAL); }
393 exp : type '(' exp ')' %prec UNARY
394 { write_exp_elt_opcode (UNOP_CAST);
395 write_exp_elt_type ($1);
396 write_exp_elt_opcode (UNOP_CAST); }
403 /* Binary operators in order of decreasing precedence. Note that some
404 of these operators are overloaded! (ie. sets) */
408 { write_exp_elt_opcode (BINOP_REPEAT); }
412 { write_exp_elt_opcode (BINOP_MUL); }
416 { write_exp_elt_opcode (BINOP_DIV); }
420 { write_exp_elt_opcode (BINOP_INTDIV); }
424 { write_exp_elt_opcode (BINOP_REM); }
428 { write_exp_elt_opcode (BINOP_ADD); }
432 { write_exp_elt_opcode (BINOP_SUB); }
436 { write_exp_elt_opcode (BINOP_EQUAL); }
439 exp : exp NOTEQUAL exp
440 { write_exp_elt_opcode (BINOP_NOTEQUAL); }
442 { write_exp_elt_opcode (BINOP_NOTEQUAL); }
446 { write_exp_elt_opcode (BINOP_LEQ); }
450 { write_exp_elt_opcode (BINOP_GEQ); }
454 { write_exp_elt_opcode (BINOP_LESS); }
458 { write_exp_elt_opcode (BINOP_GTR); }
461 exp : exp LOGICAL_AND exp
462 { write_exp_elt_opcode (BINOP_LOGICAL_AND); }
466 { write_exp_elt_opcode (BINOP_LOGICAL_OR); }
470 { write_exp_elt_opcode (BINOP_ASSIGN); }
477 { write_exp_elt_opcode (OP_BOOL);
478 write_exp_elt_longcst ((LONGEST) $1);
479 write_exp_elt_opcode (OP_BOOL); }
483 { write_exp_elt_opcode (OP_BOOL);
484 write_exp_elt_longcst ((LONGEST) $1);
485 write_exp_elt_opcode (OP_BOOL); }
489 { write_exp_elt_opcode (OP_LONG);
490 write_exp_elt_type (builtin_type_m2_int);
491 write_exp_elt_longcst ((LONGEST) $1);
492 write_exp_elt_opcode (OP_LONG); }
497 write_exp_elt_opcode (OP_LONG);
498 write_exp_elt_type (builtin_type_m2_card);
499 write_exp_elt_longcst ((LONGEST) $1);
500 write_exp_elt_opcode (OP_LONG);
505 { write_exp_elt_opcode (OP_LONG);
506 write_exp_elt_type (builtin_type_m2_char);
507 write_exp_elt_longcst ((LONGEST) $1);
508 write_exp_elt_opcode (OP_LONG); }
513 { write_exp_elt_opcode (OP_DOUBLE);
514 write_exp_elt_type (builtin_type_m2_real);
515 write_exp_elt_dblcst ($1);
516 write_exp_elt_opcode (OP_DOUBLE); }
522 /* The GDB internal variable $$, et al. */
524 { write_exp_elt_opcode (OP_LAST);
525 write_exp_elt_longcst ((LONGEST) $1);
526 write_exp_elt_opcode (OP_LAST); }
530 { write_exp_elt_opcode (OP_REGISTER);
531 write_exp_elt_longcst ((LONGEST) $1);
532 write_exp_elt_opcode (OP_REGISTER); }
535 exp : SIZE '(' type ')' %prec UNARY
536 { write_exp_elt_opcode (OP_LONG);
537 write_exp_elt_type (builtin_type_int);
538 write_exp_elt_longcst ((LONGEST) TYPE_LENGTH ($3));
539 write_exp_elt_opcode (OP_LONG); }
543 { write_exp_elt_opcode (OP_M2_STRING);
544 write_exp_string ($1);
545 write_exp_elt_opcode (OP_M2_STRING); }
548 /* This will be used for extensions later. Like adding modules. */
550 { $$ = SYMBOL_BLOCK_VALUE($1); }
555 = lookup_symbol (copy_name ($1), expression_context_block,
556 VAR_NAMESPACE, 0, NULL);
561 /* GDB scope operator */
562 fblock : block COLONCOLON BLOCKNAME
564 = lookup_symbol (copy_name ($3), $1,
565 VAR_NAMESPACE, 0, NULL);
566 if (!tem || SYMBOL_CLASS (tem) != LOC_BLOCK)
567 error ("No function \"%s\" in specified context.",
573 /* Useful for assigning to PROCEDURE variables */
575 { write_exp_elt_opcode(OP_VAR_VALUE);
576 write_exp_elt_block (NULL);
577 write_exp_elt_sym ($1);
578 write_exp_elt_opcode (OP_VAR_VALUE); }
581 /* GDB internal ($foo) variable */
582 variable: INTERNAL_VAR
583 { write_exp_elt_opcode (OP_INTERNALVAR);
584 write_exp_elt_intern ($1);
585 write_exp_elt_opcode (OP_INTERNALVAR); }
588 /* GDB scope operator */
589 variable: block COLONCOLON NAME
590 { struct symbol *sym;
591 sym = lookup_symbol (copy_name ($3), $1,
592 VAR_NAMESPACE, 0, NULL);
594 error ("No symbol \"%s\" in specified context.",
597 write_exp_elt_opcode (OP_VAR_VALUE);
598 /* block_found is set by lookup_symbol. */
599 write_exp_elt_block (block_found);
600 write_exp_elt_sym (sym);
601 write_exp_elt_opcode (OP_VAR_VALUE); }
604 /* Base case for variables. */
606 { struct symbol *sym;
607 int is_a_field_of_this;
609 sym = lookup_symbol (copy_name ($1),
610 expression_context_block,
616 if (symbol_read_needs_frame (sym))
618 if (innermost_block == 0 ||
619 contained_in (block_found,
621 innermost_block = block_found;
624 write_exp_elt_opcode (OP_VAR_VALUE);
625 /* We want to use the selected frame, not
626 another more inner frame which happens to
627 be in the same block. */
628 write_exp_elt_block (NULL);
629 write_exp_elt_sym (sym);
630 write_exp_elt_opcode (OP_VAR_VALUE);
634 struct minimal_symbol *msymbol;
635 register char *arg = copy_name ($1);
638 lookup_minimal_symbol (arg, NULL, NULL);
643 lookup_function_type (builtin_type_int),
646 else if (!have_full_symbols () && !have_partial_symbols ())
647 error ("No symbol table is loaded. Use the \"symbol-file\" command.");
649 error ("No symbol \"%s\" in current context.",
657 { $$ = lookup_typename (copy_name ($1),
658 expression_context_block, 0); }
669 return (MAX_OF_TYPE(builtin_type_m2_int) - b) < a;
676 return (MAX_OF_TYPE(builtin_type_m2_card) - b) < a;
680 /* Take care of parsing a number (anything that starts with a digit).
681 Set yylval and return the token type; update lexptr.
682 LEN is the number of characters in it. */
684 /*** Needs some error checking for the float case ***/
690 register char *p = lexptr;
691 register LONGEST n = 0;
692 register LONGEST prevn = 0;
693 register int c,i,ischar=0;
694 register int base = input_radix;
695 register int len = olen;
696 int unsigned_p = number_sign == 1 ? 1 : 0;
703 else if(p[len-1] == 'C' || p[len-1] == 'B')
706 ischar = p[len-1] == 'C';
710 /* Scan the number */
711 for (c = 0; c < len; c++)
713 if (p[c] == '.' && base == 10)
715 /* It's a float since it contains a point. */
716 yylval.dval = atof (p);
720 if (p[c] == '.' && base != 10)
721 error("Floating point numbers must be base 10.");
722 if (base == 10 && (p[c] < '0' || p[c] > '9'))
723 error("Invalid digit \'%c\' in number.",p[c]);
730 if( base == 8 && (c == '8' || c == '9'))
731 error("Invalid digit \'%c\' in octal number.",c);
732 if (c >= '0' && c <= '9')
736 if (base == 16 && c >= 'A' && c <= 'F')
744 if(!unsigned_p && number_sign == 1 && (prevn >= n))
745 unsigned_p=1; /* Try something unsigned */
746 /* Don't do the range check if n==i and i==0, since that special
747 case will give an overflow error. */
748 if(RANGE_CHECK && n!=i && i)
750 if((unsigned_p && (unsigned)prevn >= (unsigned)n) ||
751 ((!unsigned_p && number_sign==-1) && -prevn <= -n))
752 range_error("Overflow on numeric constant.");
758 if(*p == 'B' || *p == 'C' || *p == 'H')
759 lexptr++; /* Advance past B,C or H */
766 else if ( unsigned_p && number_sign == 1)
771 else if((unsigned_p && (n<0))) {
772 range_error("Overflow on numeric constant -- number too large.");
773 /* But, this can return if range_check == range_warn. */
788 { {'<', '>'}, NOTEQUAL },
789 { {':', '='}, ASSIGN },
792 { {':', ':'}, COLONCOLON },
796 /* Some specific keywords */
803 static struct keyword keytab[] =
806 {"IN", IN },/* Note space after IN */
807 {"AND", LOGICAL_AND},
825 {"FLOAT", FLOAT_FUNC },
830 /* Read one token, getting characters through lexptr. */
832 /* This is where we will check to make sure that the language and the operators used are
839 register int namelen;
841 register char *tokstart;
849 /* See if it is a special token of length 2 */
850 for( i = 0 ; i < sizeof tokentab2 / sizeof tokentab2[0] ; i++)
851 if(STREQN(tokentab2[i].name, tokstart, 2))
854 return tokentab2[i].token;
857 switch (c = *tokstart)
874 if (paren_depth == 0)
881 if (comma_terminates && paren_depth == 0)
887 /* Might be a floating point number. */
888 if (lexptr[1] >= '0' && lexptr[1] <= '9')
889 break; /* Falls into number code. */
896 /* These are character tokens that appear as-is in the YACC grammar */
919 for (namelen = 1; (c = tokstart[namelen]) != quote && c != '\0'; namelen++)
922 c = tokstart[++namelen];
923 if (c >= '0' && c <= '9')
925 c = tokstart[++namelen];
926 if (c >= '0' && c <= '9')
927 c = tokstart[++namelen];
931 error("Unterminated string or character constant.");
932 yylval.sval.ptr = tokstart + 1;
933 yylval.sval.length = namelen - 1;
934 lexptr += namelen + 1;
936 if(namelen == 2) /* Single character */
938 yylval.ulval = tokstart[1];
945 /* Is it a number? */
946 /* Note: We have already dealt with the case of the token '.'.
947 See case '.' above. */
948 if ((c >= '0' && c <= '9'))
951 int got_dot = 0, got_e = 0;
952 register char *p = tokstart;
957 if (!got_e && (*p == 'e' || *p == 'E'))
959 else if (!got_dot && *p == '.')
961 else if (got_e && (p[-1] == 'e' || p[-1] == 'E')
962 && (*p == '-' || *p == '+'))
963 /* This is the sign of the exponent, not the end of the
966 else if ((*p < '0' || *p > '9') &&
967 (*p < 'A' || *p > 'F') &&
968 (*p != 'H')) /* Modula-2 hexadecimal number */
971 toktype = parse_number (p - tokstart);
972 if (toktype == ERROR)
974 char *err_copy = (char *) alloca (p - tokstart + 1);
976 memcpy (err_copy, tokstart, p - tokstart);
977 err_copy[p - tokstart] = 0;
978 error ("Invalid number \"%s\".", err_copy);
984 if (!(c == '_' || c == '$'
985 || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')))
986 /* We must have come across a bad character (e.g. ';'). */
987 error ("Invalid character '%c' in expression.", c);
989 /* It's a name. See how long it is. */
991 for (c = tokstart[namelen];
992 (c == '_' || c == '$' || (c >= '0' && c <= '9')
993 || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
994 c = tokstart[++namelen])
997 /* The token "if" terminates the expression and is NOT
998 removed from the input stream. */
999 if (namelen == 2 && tokstart[0] == 'i' && tokstart[1] == 'f')
1006 /* Handle the tokens $digits; also $ (short for $0) and $$ (short for $$1)
1007 and $$digits (equivalent to $<-digits> if you could type that).
1008 Make token type LAST, and put the number (the digits) in yylval. */
1010 if (*tokstart == '$')
1012 register int negate = 0;
1014 /* Double dollar means negate the number and add -1 as well.
1015 Thus $$ alone means -1. */
1016 if (namelen >= 2 && tokstart[1] == '$')
1023 /* Just dollars (one or two) */
1024 yylval.lval = - negate;
1027 /* Is the rest of the token digits? */
1028 for (; c < namelen; c++)
1029 if (!(tokstart[c] >= '0' && tokstart[c] <= '9'))
1033 yylval.lval = atoi (tokstart + 1 + negate);
1035 yylval.lval = - yylval.lval;
1040 /* Handle tokens that refer to machine registers:
1041 $ followed by a register name. */
1043 if (*tokstart == '$') {
1044 for (c = 0; c < NUM_REGS; c++)
1045 if (namelen - 1 == strlen (reg_names[c])
1046 && STREQN (tokstart + 1, reg_names[c], namelen - 1))
1051 for (c = 0; c < num_std_regs; c++)
1052 if (namelen - 1 == strlen (std_regs[c].name)
1053 && STREQN (tokstart + 1, std_regs[c].name, namelen - 1))
1055 yylval.lval = std_regs[c].regnum;
1061 /* Lookup special keywords */
1062 for(i = 0 ; i < sizeof(keytab) / sizeof(keytab[0]) ; i++)
1063 if(namelen == strlen(keytab[i].keyw) && STREQN(tokstart,keytab[i].keyw,namelen))
1064 return keytab[i].token;
1066 yylval.sval.ptr = tokstart;
1067 yylval.sval.length = namelen;
1069 /* Any other names starting in $ are debugger internal variables. */
1071 if (*tokstart == '$')
1073 yylval.ivar = (struct internalvar *) lookup_internalvar (copy_name (yylval.sval) + 1);
1074 return INTERNAL_VAR;
1078 /* Use token-type BLOCKNAME for symbols that happen to be defined as
1079 functions. If this is not so, then ...
1080 Use token-type TYPENAME for symbols that happen to be defined
1081 currently as names of types; NAME for other symbols.
1082 The caller is not constrained to care about the distinction. */
1086 char *tmp = copy_name (yylval.sval);
1089 if (lookup_partial_symtab (tmp))
1091 sym = lookup_symbol (tmp, expression_context_block,
1092 VAR_NAMESPACE, 0, NULL);
1093 if (sym && SYMBOL_CLASS (sym) == LOC_BLOCK)
1095 if (lookup_typename (copy_name (yylval.sval), expression_context_block, 1))
1107 case LOC_REGPARM_ADDR:
1111 case LOC_BASEREG_ARG:
1113 case LOC_CONST_BYTES:
1114 case LOC_OPTIMIZED_OUT:
1124 error("internal: Undefined class in m2lex()");
1127 error("internal: Unforseen case in m2lex()");
1132 /* Built-in BOOLEAN type. This is sort of a hack. */
1133 if(STREQN(tokstart,"TRUE",4))
1138 else if(STREQN(tokstart,"FALSE",5))
1145 /* Must be another type of name... */
1152 make_qualname(mod,ident)
1155 char *new = malloc(strlen(mod)+strlen(ident)+2);
1168 error ("A %s in expression, near `%s'.", (msg ? msg : "error"), lexptr);