Richard M. Stallman
70811b851d
Explain better why to make a pure parser.
1998-05-05 22:18:45 +00:00
Richard M. Stallman
e0672a6170
(openfiles): [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
...
find a temporary directory, if possible. Do not unlink files while
they are open.
1998-01-05 00:25:39 +00:00
Richard M. Stallman
aba5ca6dea
(stack_offset;): Change some warni to warns.
1997-08-25 19:40:12 +00:00
Richard M. Stallman
b0180c64a5
(literalchar): Use warns, not warni.
1997-08-25 19:38:57 +00:00
Richard M. Stallman
1099cdc0aa
(bison_version): New variable.
...
(dist): Use that variable.
(bison.s1): Substitute the Bison version into bison.simple.
1997-06-28 19:43:05 +00:00
Richard M. Stallman
7d369561eb
Add a Bison version comment.
1997-06-28 19:41:24 +00:00
Richard M. Stallman
319ce53328
(fatal, warn, berror): Use program_name.
1997-06-28 19:31:35 +00:00
Richard M. Stallman
3d05a5de82
(fatal, warn, berror): Make error messages standard.
...
(toomany): Improve error message text.
1997-06-18 17:09:27 +00:00
Richard M. Stallman
7612000cb0
new.h renamed to alloc.h.
1997-06-18 06:40:45 +00:00
Richard M. Stallman
5ce94c2964
(literalchar): Fix the code for escaping \, " and '.
...
(lex): Avoid trouble when there are many chars
to discard in a char literal with just several chars in it.
1997-05-24 08:04:42 +00:00
Richard M. Stallman
70ddf8972a
Use malloc, if using alloca is troublesome.
...
(YYSTACK_USE_ALLOCA): New flag macro.
Define it for some systems and compilers.
(YYSTACK_ALLOC): New macro.
(yyparse): Use YYSTACK_ALLOC to allocate stack.
If it was malloc'd, free it.
1997-05-17 18:44:24 +00:00
Richard M. Stallman
3054a9cdfb
(alloca) [__hpux]: Always define as __builtin_alloca.
1997-04-23 18:01:25 +00:00
Richard M. Stallman
009b94d421
[__hpux]: Include alloca.h (right for HPUX 10)
...
instead of declaring alloca (right for HPUX 9).
1997-04-22 22:23:48 +00:00
Richard M. Stallman
5e02f2ada1
(__yy_memcpy): Declare arg `count' as unsigned int.
...
(yyparse): Cast third arg to __yy_memcpy to unsigned int.
1997-04-22 22:19:12 +00:00
Richard M. Stallman
8f047e5ecf
[__STDC__ or _MSC_VER]:
...
Declare calloc and realloc to return void *.
1997-01-03 01:24:27 +00:00
Richard M. Stallman
01aed9a741
(dist): Explicitly check for symlinks, and copy them.
1997-01-02 07:13:01 +00:00
Richard M. Stallman
d36e30d8c2
[_MSC_VER]: Include stdlib.h and process.h.
...
[_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1997-01-02 07:03:45 +00:00
Richard M. Stallman
42f95d63c2
(main): Return FAILURE as a value.
...
(printable_version): Declare arg as int, not char.
1997-01-02 06:59:56 +00:00
Richard M. Stallman
6a5705cfe8
[_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1996-12-19 08:24:56 +00:00
Richard M. Stallman
2f9040d9ba
(nbits): Add some casts.
1996-12-17 06:20:27 +00:00
Richard M. Stallman
32d5c018d8
Test _MSDOS as well as _MSDOS_.
1996-08-12 22:17:15 +00:00
Richard M. Stallman
b6287af6f6
[__sun && __i386]: Include alloca.h.
1996-07-31 19:18:57 +00:00
Richard M. Stallman
444fbf65fb
Comment change.
1996-07-30 04:37:37 +00:00
Richard M. Stallman
db245ba812
Test _MSDOS_, not MSDOS.
1996-07-30 04:37:16 +00:00
Richard M. Stallman
a083fbbf22
Insert `_' macro around many string constants.
1996-06-01 22:10:15 +00:00
Richard M. Stallman
2934057149
Insert `_' macro around many string constants.
...
(main): Call setlocale, bindtextdomain and textdomain.
1996-06-01 22:07:27 +00:00
Richard M. Stallman
f2d78a995d
[HAVE_LOCALE_H]: Include locale.h.
...
[! HAVE_LOCALE_H] (setlocale): Define as no-op.
[ENABLE_NLS]: Include libintl.h.
[ENABLE_NLS] (gettext): Define.
[! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
(N_, PACKAGE, LOCALEDIR): New macros.
1996-06-01 22:06:24 +00:00
Richard M. Stallman
5049f457bf
Initial revision
1996-06-01 22:00:33 +00:00
Richard M. Stallman
55bcd09a24
(allocate.o): Define target explicitly.
1996-06-01 22:00:14 +00:00
Richard M. Stallman
ac89deb718
(CFLAGS): Set to @CFLAGS@.
...
(LDFLAGS): Set to @LDFLAGS@.
(configure): Run autoconf only if preceding `cd' succeeds.
(bison.s1): Redirect output to temporary file then move the
temporary to the target, rather than redirecting directly to bison.s1.
(clean): Remove config.status and config.log.
(distclean): Don't remove config.status here.
1996-06-01 21:53:20 +00:00
Richard M. Stallman
4cf401b28e
(__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1996-05-12 22:17:15 +00:00
Richard M. Stallman
687621a5c5
(dist): Don't use $(srcdir).
1996-05-11 19:20:49 +00:00
Richard M. Stallman
c245d0d38d
(__yy_memcpy): Really reorder the args, as was supposedly done on Feb 14 1995.
...
(yyparse): Calls changed accordingly.
1996-05-11 19:19:55 +00:00
Richard M. Stallman
ba2e357c0d
(output_rule_data): Test YYERROR_VERBOSE in the conditional
...
around the definition of ttyname.
1996-01-27 08:26:26 +00:00
Richard M. Stallman
a8a7082ea6
Fix line numbers in #line commands.
1995-12-29 04:29:18 +00:00
Richard M. Stallman
30f5b1ccd3
(YYPARSE_PARAM_DECL): In C++, make it always null.
...
(YYPARSE_PARAM_ARG): New macro.
(yyparse): Use YYPARSE_PARAM_ARG.
1995-12-27 12:43:49 +00:00
Richard M. Stallman
931c751390
Describe literal string tokens, %raw, %no_lines, %token_table.
1995-11-29 01:22:34 +00:00
Richard M. Stallman
333ccc01a4
Add new options.
1995-10-16 14:12:23 +00:00
Richard M. Stallman
a73039ebb7
Version 1.25.
1995-10-16 14:12:01 +00:00
Richard M. Stallman
df8878c59b
*** empty log message ***
1995-10-16 14:10:22 +00:00
Richard M. Stallman
6dd6d21286
Added -n, -k, and -raw switches.
...
(noparserflag, toknumflag, rawtoknumflag): New variables.
1995-10-15 20:22:50 +00:00
Richard M. Stallman
984a8a8a40
(SALIAS): New #define for adding aliases to %token.
...
(struct bucket): Added `alias' field.
1995-10-15 20:19:02 +00:00
Richard M. Stallman
d129c2c0e7
(reduce_grammar): Revise error message.
...
(print_notices): Remove final `.' from error message.
1995-10-15 20:18:29 +00:00
Richard M. Stallman
943819bf46
(reader_output_yylsp): New function.
...
(readgram): Use `#if 0' around code that accepted %command
inside grammar rules: The documentation doesn't allow it,
and it will fail since the %command processors scan for the next %.
(parse_token_decl): Extended the %token
declaration to allow a multi-character symbol as an alias.
(parse_thong_decl): New function.
(read_declarations): Added %thong declarations.
(read_declarations): Handle NOOP to deal with allowing
% declarations as another means to specify the flags.
(readgram): Allow %prec prior to semantics embedded in a rule.
(skip_to_char, read_declarations, copy_definition)
(parse_token_decl, parse_start_decl, parse_type_decl)
(parse_assoc_decl, parse_union_decl, parse_expect_decl)
(get_type_name, copy_guard, copy_action, readgram)
(get_type, packsymbols): Revised most error messages.
Changed `fatal' to `warnxxx' to avoid aborting for error.
Revised and use multiple warnxxx functions to avoid using VARARGS1.
(read_declarations): Improve the error message for
an invalid character. Do not abort.
(read_declarations, copy_guard, copy_action): Use
printable_version to avoid unprintable characters in printed output.
(parse_expect_decl): Error if argument to %expect exceeds 10 digits.
(parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
Allow the type of a non-terminal can be given
more than once, as long as all specifications give the same type.
1995-10-15 20:17:23 +00:00
Richard M. Stallman
e372befafa
(output_headers, output_trailers, output, output_gram)
...
(output_rule_data): Implement noparserflag variable.
Implement toknumflag variable.
(output): Call reader_output_yylsp to output LTYPESTR.
1995-10-15 20:10:00 +00:00
Richard M. Stallman
a98ad01e46
(main): If reader sees an error, don't process the grammar.
...
(fatals): Updated to not use VARARGS1.
(printable_version, int_to_string, warn, warni, warns, warnss)
(warnsss): New error reporting functions. Avoid abort for error.
1995-10-15 20:08:17 +00:00
Richard M. Stallman
7da4d69f8a
Added THONG and NOOP for alias processing.
...
Added SETOPT for the new code that allows setting options with %flags.
1995-10-15 20:07:08 +00:00
Richard M. Stallman
a44c227773
Include getopt.h. Add some extern decls.
...
(safegetc): New function to deal with EOF gracefully.
(literalchar); new function to deal with reading \ escapes.
(lex): Use literalchar.
(lex): Implemented "..." tokens.
(literalchar, lex, parse_percent_token): Made tokenbuffer
always contain the token. This includes growing the token
buffer while reading an integer.
(parse_percent_token): Replaced if-else statement with percent_table.
(parse_percent_token): Added % declarations as another
way to specify the flags -n, -l, and -r. Also added hooks for
-d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
major changes to files.c.
(lex) Retain in the incoming stream a character following
an incorrect '/'.
(skip_white_space, lex): Revised most error messages
and changed fatal to warn to avoid aborting.
(percent_table): Added %thong declarations.
1995-10-15 20:06:23 +00:00
Richard M. Stallman
9f69021105
Comment changes.
1995-10-15 20:02:41 +00:00
Richard M. Stallman
28683c5444
(openfiles, open_extra_files, done): Add faction flag
...
and actfile file. Handle noparserflag. Both for -n switch.
1995-10-15 20:02:02 +00:00
Richard M. Stallman
b65534e5a4
(resolve_sr_conflict): Remove use of alloca.
1995-10-15 20:01:09 +00:00
Richard M. Stallman
cfeaeb52f5
Comment change.
1995-05-06 05:35:44 +00:00
Richard M. Stallman
a31239f1bb
Rewrite "Conditions for Using Bison".
...
Update version to 1.24.
1995-05-03 15:13:10 +00:00
Richard M. Stallman
4eaeafc1a7
Version now 1.24.
1995-05-03 14:56:25 +00:00
Richard M. Stallman
c71f8bbaa3
Change distribution terms.
1995-05-03 07:13:20 +00:00
Richard M. Stallman
f67f8c02d2
Version now 1.23.
1995-05-03 07:12:53 +00:00
Richard M. Stallman
fcca25ad3c
Test __VMS_POSIX as well as VMS.
1995-02-23 07:43:50 +00:00
Richard M. Stallman
21b14802aa
Update copyright notice and GPL version.
1994-09-15 21:39:22 +00:00
Richard M. Stallman
572909b5db
entered into RCS
1994-07-12 20:43:44 +00:00
Richard M. Stallman
cc90caacec
entered into RCS
1994-03-26 20:33:04 +00:00
Richard M. Stallman
fe01694d7c
entered into RCS
1994-03-25 22:52:41 +00:00
Richard M. Stallman
808e202125
entered into RCS
1994-03-24 22:54:32 +00:00
Richard M. Stallman
57df1c8655
*** empty log message ***
1994-01-02 20:52:16 +00:00
Richard M. Stallman
c656404a43
entered into RCS
1993-11-21 22:03:08 +00:00
Richard M. Stallman
e425e87207
*** empty log message ***
1993-11-21 10:25:13 +00:00
Richard M. Stallman
21b3ea1545
*** empty log message ***
1993-10-19 03:55:14 +00:00
Richard M. Stallman
b658bf92ac
*** empty log message ***
1993-10-14 16:19:10 +00:00
Richard M. Stallman
854c029b15
*** empty log message ***
1993-09-10 13:41:02 +00:00
Richard M. Stallman
5fcfb6e7fb
entered into RCS
1993-09-10 12:10:14 +00:00
Richard M. Stallman
c6c88451a7
*** empty log message ***
1993-07-24 08:00:44 +00:00
Richard M. Stallman
fb75fa822d
*** empty log message ***
1993-07-04 20:07:28 +00:00
Richard M. Stallman
3d8fc6caa5
Initial revision
1993-06-25 19:11:46 +00:00
Richard M. Stallman
be4bf8770a
*** empty log message ***
1993-06-16 21:02:31 +00:00
Richard M. Stallman
0189fd923d
*** empty log message ***
1993-06-03 20:24:26 +00:00
Richard M. Stallman
10fa2066c9
Initial revision
1993-06-03 17:07:14 +00:00
Richard M. Stallman
bfa7497605
Initial revision
1993-05-19 03:41:36 +00:00
Richard M. Stallman
54bd0db436
Initial revision
1993-04-15 19:37:53 +00:00
Richard M. Stallman
5ec1330366
Initial revision
1993-04-14 04:51:13 +00:00
Richard M. Stallman
3c2c2054ef
Initial revision
1993-04-13 18:52:55 +00:00
Richard M. Stallman
c3e2364794
entered into RCS
1993-03-25 02:45:46 +00:00
Richard M. Stallman
c0e80ad486
entered into RCS
1992-09-25 22:06:24 +00:00
Richard M. Stallman
22a89eeddc
entered into RCS
1992-06-22 04:07:24 +00:00
Richard M. Stallman
aa798cc5c1
entered into RCS
1992-01-22 04:15:36 +00:00
Richard M. Stallman
d0fb370f66
entered into RCS
1991-12-21 00:17:44 +00:00
Richard M. Stallman
e06f0c3442
entered into RCS
1991-12-18 07:39:50 +00:00
Richard M. Stallman
122c0aacef
entered into RCS
1991-12-18 04:06:36 +00:00
Richard M. Stallman
f791019c55
entered into RCS
1988-09-09 01:04:17 +00:00
Richard M. Stallman
07f68b1168
entered into RCS
1987-12-16 06:53:07 +00:00