profile
viewpoint

push eventyui-knk/ruby

yui-knk

commit sha 8daeb96c45c0fbd5790ffc76dcba414c5e079cf4

Ripper expected_tokens

view details

yui-knk

commit sha fa09aeeeebeadf0130a064b1a6452520d0238f60

Cosme

view details

push time in 4 days

push eventyui-knk/ruby

yui-knk

commit sha 7d1f1b6c37398cf1ff55200f752f21851c8d1401

Fix fuction locations

view details

push time in 4 days

create barnchyui-knk/ruby

branch : feature/expected_tokens_v2_7_0_preview3

created branch time in 11 days

create barnchyui-knk/ruby

branch : feature/expected_tokens

created branch time in 11 days

starteddotnet/roslyn

started time in 18 days

startedopenjdk-mirror/jdk7u-hotspot

started time in 23 days

delete branch yui-knk/magazine.rubyist.net

delete branch : fix_2009-02-07-0025-Ruby19_m17n

delete time in a month

push eventyui-knk/bison

Akim Demaille

commit sha 1650c729d90a4afedee6ae8952eb69eb1aad3cf4

doc: type-face fixes * doc/bison.texi: Use @code for types in function definitions.

view details

Akim Demaille

commit sha 008d927f71230cac2390511b459f7d1d2b612e9b

doc: use upper case for tokens * doc/bison.texi: here.

view details

Akim Demaille

commit sha b2347a3c3edb8ed0fab3510534956c41715fcaf8

doc: formatting changes * doc/bison.texi: Wrap lines. No semantical difference.

view details

Akim Demaille

commit sha af000bab111768a04021bf5ffa4bbe91d44e231c

doc: work around Texinfo 6.7 bug When @code is used in a @deftype... definition, it issues quotes. Remove them. See https://lists.gnu.org/archive/html/help-texinfo/2019-11/msg00004.html. * doc/local.mk: here.

view details

Yuichiro Kaneko

commit sha 17d34c231b185b5612dbe4f842f76f2c9490f2f4

gram.c: also print terminals in grammar_dump * src/gram.c (grammar_dump): Print terminals likewise non terminals. * tests/sets.at (Reduced Grammar): Update test case to catch up the change and add a test case where prec and assoc are used.

view details

Yuichiro Kaneko

commit sha 9f3a36c6989a23ec9da78343d9d34ac6e97adb0e

gram.c: Fix condition of aver * src/gram.c (grammar_dump): Fix condition of aver. What we want to check is that rhs is followed by its rule.

view details

push time in a month

push eventyui-knk/bison

Yuichiro Kaneko

commit sha e6ca8c15a13194d5fe489870ad6af02cdecfb7c4

Update

view details

push time in a month

create barnchyui-knk/bison

branch : YYSTACK_RELOCATE

created branch time in a month

push eventyui-knk/parzer

yui-knk

commit sha e0b91b248b410b558bc20589eeac8735c33d2d2e

BisonWrapper

view details

yui-knk

commit sha 3b5d984bf96771b71f2522f1ab1bcd0a2e08eb11

parser:setup task

view details

push time in a month

PR opened rubima/magazine.rubyist.net

Add newline to fix body to be treated as a header

Before

https://magazine.rubyist.net/articles/0025/0025-Ruby19_m17n.html#%E8%91%97%E8%80%85%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6

スクリーンショット 2019-11-10 13 10 56

After

On local machine:

スクリーンショット 2019-11-10 13 11 09

+1 -0

0 comment

1 changed file

pr created time in a month

create barnchyui-knk/magazine.rubyist.net

branch : fix_2009-02-07-0025-Ruby19_m17n

created branch time in a month

push eventyui-knk/bison

yui-knk

commit sha 7430c63861a756aec22c9b8b21668f6e6f053076

gram.c: Print terminals in grammar_dump * src/gram.c (grammar_dump): Print terminals likewise non terminals * tests/sets.at (Reduced Grammar): Update test case to catch up the change and add a test case where prec and assoc are used.

view details

push time in a month

push eventyui-knk/bison

Paul Eggert

commit sha 6ef8513e7cba259dd9fbbdc1f8aab1b3cc56f314

build: update gnulib submodule to latest

view details

Akim Demaille

commit sha 17e21f6158e6b0bf742cdcd0742998ac8085a546

gitignore: update

view details

Akim Demaille

commit sha bc5efb558dbf88988a12160f8f2e14a4c1726bb1

build: remove dmalloc support Today sanitizers are a better alternative. * m4/dmalloc.m4: Remove. * configure.ac, src/system.h: Adjust.

view details

Akim Demaille

commit sha 76597d01f3edf9330979a4f57b33803d7b97a14d

build: reenable -Wtype-limits See https://lists.gnu.org/archive/html/bug-bison/2019-10/msg00061.html to https://lists.gnu.org/archive/html/bug-bison/2019-10/msg00073.html. Paul Eggert's changes in gnulib do fix the issue for modern GCCs (7, 8, 9) on macOS. Unfortunately these warnings are back on the CI (GNU/Linux) with GCC 4.6, 4.7, (not 4.8) and 4.9. Disable the warning locally. * configure.ac (warn_common, warn_tests): Remove -Wtype-limits. * src/system.h (IGNORE_TYPE_LIMITS_BEGIN, IGNORE_TYPE_LIMITS_END): New. * src/InadequacyList.c, src/parse-gram.c, src/parse-gram.y, * src/symtab.c: Use it.

view details

Akim Demaille

commit sha fa9871a2fb6adaca6aa72b75959bac865af81cc8

diagnostics: simplify location handling Locations start at line 1. Don't accept line 0. * src/location.c (location_print): Don't print locations with line 0. (location_caret): Simplify.

view details

Akim Demaille

commit sha 719395c9cda26286476b94e9a97e27e54a2bde36

examples: fix missing dependencies Reported by Thomas Petazzoni. https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00000.html * examples/c/reccalc/local.mk: Complete dependencies, including for earlier versions of Automake (for sake of our CI, on top of Ubuntu Xenial/Bionic, which feature only Automake 1.15). (%D%/scan.c %D%/scan.h): Upgrade to the full version provided in Automake's documentation.

view details

kaneko y

commit sha aa244fc5feef84cdf000285e20c82ce7020675ef

README: Fix a typo * README: Fix a typo. Git command name is submodule.

view details

Akim Demaille

commit sha 402332c4b610a78299904bf42f37aee63c640d34

lalr1.cc: use computed state types This skeleton uses a single stack of state structures, so it is less likely to benefit from a stack size reduction than yacc.c (which uses several stacks: state number, value and location). But it will reduce the size of the LAC stack. This skeleton was already using int for state numbers, so, contrary to yacc.c, this brings nothing for large automata. Overall, it is still nicer to make the skeletons alike. * data/skeletons/lalr1.cc (state_type): Here.

view details

Akim Demaille

commit sha 0cbefb71e8c6e664c29174df60bfdd7731166b6b

lalr1.cc: fix previous commit: printing of state numbers * data/skeletons/lalr1.cc: Printing a char prints... a char. Print ints instead.

view details

Akim Demaille

commit sha c680300a29f6960de277c3a99909867f80147dc6

style: remove incorrect comment Reported by Paul Eggert. * src/system.h: here.

view details

Akim Demaille

commit sha 6e7d8ba6a7db3460c2cea3e5afd6640043875286

reader: let symtab deal with the symbols * src/reader.c (reader): Move the setting up of the builtin symbols to... * src/symtab.c (symbols_new): here.

view details

Akim Demaille

commit sha 4b4e532748af87a0ec4d5a7fa38bafce6b24fce7

diagnostics: use grammar_file instead of current_file Currently there are two globals denoting the input file: grammar_file is the one from the command line, and current_file which might change because of #line. Use only the former. * src/complain.c (error_message): here. * tests/diagnostics.at: Adjust.

view details

Akim Demaille

commit sha 3be912e4af90a9818a78239daaee4a15bdbcda06

parser: use grammar_file instead of current_file * src/parse-gram (%initial-action): here. (handle_skeleton): Don't depend on the current file name to look for "local" skeletons (subject to changes coming from "#lines"): depend only on the initial file name, the one given on the command line.

view details

Akim Demaille

commit sha a5fc4e3b44870abddc9fdaaf53e98a1ca0ce7b16

regen

view details

Akim Demaille

commit sha 8228d96d338156c14bc71a45f9dd3bfa8f82b5c1

reader: reduce the "scope" of global variables We have too many global variables, adding structure would help. For a start, let's hide some of the variables closer to their usage. * src/getargs.c, src/files.h (current_file): Move to... * src/scan-gram.c: here. * src/scan-gram.h (gram_in, gram__flex_debug): Remove, make them private to the scanner. * src/reader.h, src/reader.c (reader): Take a grammar file as argument. Move the handling of scanner variables to... * src/scan-gram.l (gram_scanner_open, gram_scanner_close): here. (gram_scanner_initialize): Remove, replaced by gram_scanner_open. * src/main.c: Adjust.

view details

Akim Demaille

commit sha 7e0b50c52439a8154cd6a85933e2acef8dae2452

CI: pass -O1 to GCC8 with sanitizers This build never finishes in the 50min credit given by Travis. See if with optimizations it works better. * .travis.yml: here.

view details

Akim Demaille

commit sha fead28d9e38603a932619a6df2edf95a93377df3

style: glr.c: comment changes * data/skeletons/glr.c: here.

view details

Akim Demaille

commit sha c53b37978414865082e3e3e23fec62d564f4b18c

style: fix cpp indentation Reported by syntax-check. * src/system.h: here.

view details

Akim Demaille

commit sha 28f1e1546cec4e5235009acd151fbe821c56faef

C++: finish propagating the unsigned->signed conversion in locations * data/skeletons/location.cc: Remove the u (for unsigned) suffix from the initial line and column. * NEWS: AFAICT, only C++ backends have their location types changed.

view details

Akim Demaille

commit sha 10acc148bb90fac8a52a5d35f2bd18bd824c1639

version 3.4.90 * NEWS: Record release date.

view details

push time in a month

create barnchyui-knk/bison

branch : fix_aver

created branch time in a month

push eventyui-knk/ruby

Yusuke Endoh

commit sha 4615886c76c0e906a349440ac7e232ad0ba5ce30

test_method_missing_kwsplat should call the target directly not via Object#send which uses a fast path vm_call_opt_send.

view details

Yusuke Endoh

commit sha 252e2990099557a54577ad8915b689761117cd7a

vm_call_opt_send should not drop the empty keyword hash Now the mechanism that conveys kw_splat flag is gradually established, so the hack to drop the empty keyword hash is not needed for vm_call_opt_send.

view details

Yusuke Endoh

commit sha 70f2780892330f8d1b612002c437fc2ca739fc7f

vm_call_bmethod should not drop the empty keyword hash Similar to 38e9c1bc35d5549575fbb263afff560e97db068e

view details

Yusuke Endoh

commit sha dd83f7bf98764b27385735f6f39dd090dc4854f9

define_method should not drop the empty keyword hash Similar to 38e9c1bc35d5549575fbb263afff560e97db068e

view details

Yusuke Endoh

commit sha 55b96c5d2d7d8bcc2953484bd2f9c9519b252dae

Add a keyword-to-last-hash warning for some case of define_method method and lambda. When define_method is a simple iseq (`define_method(:m) {|x| ... }`), passing keywords to it (`m(**kw)`) didn't print a warning.

view details

Jeremy Evans

commit sha d1ef73b59cede58f2173fa0f4ff7480a820f25d6

Always remove empty keyword hashes when calling methods While doing so is not backwards compatible with Ruby 2.6, it is necessary for generic argument forwarding to work for all methods: ```ruby def foo(*args, **kw, &block) bar(*args, **kw, &block) end ``` If you do not remove empty keyword hashes, and bar does not accept keyword arguments, then a call to foo without keyword arguments calls bar with an extra positional empty hash argument.

view details

Jeremy Evans

commit sha e7274a8ec43b5b20e42842e730dbabae58d2e6a2

Convert empty keyword hash to required positional argument and warn In general, we want to ignore empty keyword hashes. The only case where we want to allow them for backwards compatibility is when they are necessary to satify the final required positional argument. In that case, we want to not ignore them, but we do want to warn, as that will be going away in Ruby 3. This commit implements this support for regular methods and attr_writer methods. In order to allow send to forward arguments correctly, send no longer removes empty keyword hashes. It is the responsibility of the final method to remove the empty keyword hashes now. This change was necessary as otherwise send could remove the empty keyword hashes before the regular or attr_writer methods could move them to required positional arguments. For completeness, add tests for keyword handling regular methods calls. This makes rb_warn_keyword_to_last_hash non-static in vm_args.c so it can be reused in vm_insnhelper.c, and also moves declarations before statements in the rb_warn_* functions in vm_args.c.

view details

Jeremy Evans

commit sha e2878a96f77978b224f8461244cd3e1efc248d83

Convert empty keyword hash to required positional argument and warn for lambda and bmethod The lambda case is similar to the attr_writer case, except we have to determine the number of required parameters from the iseq instead of being able to assume a single required parameter. This fixes a lot of lambda tests which were switched to require warnings for all usage of keyword arguments. Similar to method handling, we do not warn when passing keyword arguments to lambdas that do not accept keyword arguments, the argument is just passed as a positional hash in that case, unless it is empty. If it is empty and not the final required parameter, then we ignore it. If it is empty and the final required parameter, then we pass it for backwards compatibility and emit a warning, as in Ruby 3 we will not pass it. The bmethod case is similar to the send case, in that we do not want to remove empty keyword splats in vm_call_bmethod, as that prevents later call handling from moving them to required positional arguments and warning.

view details

Jeremy Evans

commit sha e220b467ef3faf24140cba572b2d67973391aaa5

Convert empty keyword hash to required positional argument and warn for sym procs This is the same as the bmethod and send cases, where we don't remove the keyword splat, so later code can move it to to a a required positional parameter and warn.

view details

Jeremy Evans

commit sha 729de9ee68b868b43375eb4339b2d59f0bb8e7e8

Convert empty keyword hash to required positional argument and warn for method_missing This is the same as the bmethod, sym proc, and send cases, where we don't remove the keyword splat, so later code can move it to a required positional parameter and warn.

view details

Jeremy Evans

commit sha 5045fe6017996a9ce2562667284b392e01b5759e

Mark rb_warn_keyword_to_last_hash at MJIT_FUNC_EXPORTED Hopefully this fixes MJIT errors on AppVeyor.

view details

Jeremy Evans

commit sha d3cf0eb2142902245b7d45b557f73bbb1f02ba5a

Mark rb_warn_keyword_to_last_hash as static inline mame pointed out that vm_args.c is included in vm_insnhelper.c.

view details

git

commit sha dd81af7b6a7539473b6d7a7e35637b4a7d986523

* remove trailing spaces. [ci skip]

view details

Takashi Kokubun

commit sha 3b60e5e6bc2c84b971bea9c8312eb5d33ada2ff5

Try shrinking tested VM stack max

view details

Yusuke Endoh

commit sha 41b7c335d3ede90e7bc1b469de242df392dc6adc

Revert "Add a temporal stack dumper for debugging on trunk-mjit" This reverts commit 433c9c00d96124e3b416d0a20ff795b0ad4273fa. Successfully captured some traces, and 3b60e5e6bc2c84b971bea9c8312eb5d33ada2ff5 seems to fix the issue.

view details

卜部昌平

commit sha d6a94cffda6763c7ad3ac3830dcfe6a87e405fe4

doxygen update [ci skip]

view details

卜部昌平

commit sha a569bc09e25a2ba813d0bec1228d9ff65330a3db

add include/ruby/backward/cxxanyargs.hpp Compilation of extension libraries written in C++ are reportedly broken due to https://github.com/ruby/ruby/pull/2404 The root cause of this issue was that the definition of ANYARGS differ between C and C++, and that of C++ is incompatible with the updated ones. We are using the incompatibility against itself. In C++ two distinct function prototypes can be overloaded. We provide the old, ANYARGSed prototypes in addition to the current granular ones; and let the older ones warn about types.

view details

卜部昌平

commit sha 04f570e266ba7f9d155ceea943043532a7e2f859

add test for cxxanyargs.hpp

view details

卜部昌平

commit sha 7516c48b2744b563a6cb420c23c1ff8bdea72da6

fix Visual Studio compilation error See also https://github.com/ruby/ruby/runs/213964487

view details

卜部昌平

commit sha 2aa4fb57d103b8deec43de6735e23a1c9b8c8fa0

nullptr is a C++11ism. Should use numeric 0 for maximum portability. See also https://travis-ci.org/ruby/ruby/jobs/581543798

view details

push time in a month

create barnchyui-knk/ruby

branch : feature/store_state

created branch time in a month

push eventyui-knk/parzer

yui-knk

commit sha 1eeaa9e50fc041eff44f2b892391c7ec1cfb21a4

Extract some methods into class

view details

push time in a month

create barnchyui-knk/ruby

branch : racc

created branch time in a month

push eventyui-knk/ruby

yui-knk

commit sha 94a7bef1f6021fcde1e6f8df7e8c412b3dbb9c57

wip: Pass yystate to parser_yyerror

view details

yui-knk

commit sha 33b74d4a1c74e49c29f83d176f55888a0e4862e2

wip

view details

yui-knk

commit sha 12ef3abe5a5df132aace4e26c14ba3d72c224f73

wip

view details

push time in a month

push eventyui-knk/parzer

yui-knk

commit sha 97ca218d718581b2c3636ccfb4af51cb4407511a

Add yyparse and yydebug

view details

push time in a month

push eventyui-knk/parzer

yui-knk

commit sha 8fdef6e1bdabe5c2317c26a2c4393888a4203d11

Add parzer ext

view details

yui-knk

commit sha 4f43d6e1f1c6673c97ed2f5bed499729cd9d820f

Add yylast, yyntokens, yynnts, yynrules and yynstates

view details

yui-knk

commit sha 7475a02321723aa82cba04c187fe2c1adefead7c

Add Parzer.tokens

view details

push time in a month

push eventyui-knk/bison

Yuichiro Kaneko

commit sha 76356105fe7ceae6a9d09d395f37e1811700694a

wip

view details

push time in a month

push eventyui-knk/racc

Benoit Daloze

commit sha b1ecf227d1363d20ffde24522814d3f2960ac5bf

fix detection of rb_ary_subseq(), use mkmf's have_func() * See tenderlove/racc#34 and 1b1942a0

view details

Ryan Davis

commit sha 38bda1ccb2be40b10aef618e5f2f2e68be52b186

Clean up bundle file on rake clean

view details

Ryan Davis

commit sha afcd980150bdfad10e4a21447a8967e7e771f711

Merge pull request #39 from eregon/1-4-stable fix detection of rb_ary_subseq(), use mkmf's have_func()

view details

Ryan Davis

commit sha d59a60ff9c1d6f9d50c111590fb035aa348909f3

Renamed Init_cparse to Init_racc for 1.8 loader

view details

Ryan Davis

commit sha a6435c7526f9df50f53753f178f62abc51ac5dc4

Removed String#to_a monkeypatch. Call lines.to_a directly.

view details

Aaron Patterson

commit sha 7fc11c668d7d2fdc9815248b1c41ce40765b9881

We can't rename this because racc will rescue load errors and use the pure ruby runtime. Revert "Renamed Init_cparse to Init_racc for 1.8 loader" This reverts commit d59a60ff9c1d6f9d50c111590fb035aa348909f3.

view details

Eric Hodel

commit sha 0442b5a77ad0a6a0450d50a1fe11978c5eacdb73

Sort .gitignore

view details

Eric Hodel

commit sha d7719258dd61d4c85b2c7444113d4daecf63ff66

Ignore /pkg

view details

Charles Oliver Nutter

commit sha 1175a9567c522765ed6dca6e466f4ece427632c4

Initial commit. Base port is done, but things don't run yet. Conflicts: lib/racc/parser.rb

view details

Charles Oliver Nutter

commit sha 55a7e46ff4d507d595c1821f20120c9811cec589

Revert port to 1-4-stable version.

view details

Charles Oliver Nutter

commit sha 8e6260297cf262ea20b6c5d1526e5e34f51f842c

Most bits necessary to build and package the JRuby ext. * Maven build puts jar in ext/racc-cparse.jar * rake compile knows how to run maven * Manifest lists jar file Unfortunately `rake gem` doesn't quite work yet. There's some interaction with the rake-compiler I don't understand. Perhaps @luislavena can help us, or we can fix rake-compiler to match this preferred way of loading JRuby exts.

view details

Charles Oliver Nutter

commit sha d1ed0c0927941a5e13b0301c3228890a48b0cdc4

Tweaks to get rake test working properly.

view details

Charles Oliver Nutter

commit sha 701dd5de099202de65aac9bf108aa991b74f3e6b

First pass at performance. * Heavily hit calls replaced with call sites * Heavily hit ivars replaced with attr methods * Misc cleanup

view details

Charles Oliver Nutter

commit sha bdc435f14466d82b2e0c28f6bdaff5bc341fc4db

Fix recursive assert_integer (no idea how that passed tests).

view details

Charles Oliver Nutter

commit sha 602fbe6cd1255bd279923ed1d30e16cb0a8c7faa

Ensure parser-text.rb generates for JRuby too.

view details

Charles Oliver Nutter

commit sha c7e4cf105a26ce05194c2826141c983afb278706

Add some JRuby artifacts.

view details

Charles Oliver Nutter

commit sha e5cb13287a31b0bfb9d79583093a0d2630c8a16f

Am I doing this right?

view details

Charles Oliver Nutter

commit sha 0757432626f27e7f126e8c3954bac5c64f42f3fb

Hopefully get build putting the jar in the right place for good.

view details

Charles Oliver Nutter

commit sha cc0125321e2651f63a12bd8de25792278dab9731

Do proper require for the racc-cparse.jar file.

view details

Charles Oliver Nutter

commit sha af2e24014fa833386e16fe778f504bf3be483bde

Move ext/racc-cparse.jar to lib/racc/cparse.jar.

view details

push time in a month

push eventyui-knk/tapl

yui-knk

commit sha 94014c90a4fa44baa53fc1f84e8775a9fd799d8d

counterClassRef

view details

yui-knk

commit sha 95209c9f3b413eeeb16fa4ffc4a59140d92cfe9b

instrCounterClass But "parameter type mismatch" on counterClassRef.ml:37.19

view details

yui-knk

commit sha 9e9a23ff70bf61ec0b666936ad5b5f1a06cca2a4

Fix instrCounterClass by using Source

view details

push time in a month

push eventyui-knk/tapl

yui-knk

commit sha 5e911eb0c607700e5c7739d3f31c46807a2d5052

18.11.1 (1) instrCounterClass2WithThunk

view details

yui-knk

commit sha 82be12efc3ee20a2cd4afce22ecf24d761785caf

18.11.1 (3) instrCounterClassWithThunkResetBackup

view details

push time in a month

push eventyui-knk/tapl

yui-knk

commit sha 2708349230b970880007562f8abc1d6117e22e8f

instrCounterClassWithThunk

view details

push time in a month

push eventyui-knk/tapl

yui-knk

commit sha 51470ddd0109b69ccff1c09761a935b7a5111a0a

fix_iseven.ml

view details

yui-knk

commit sha 82637da06db67047a5271c0c0c1fa6cad674b5c9

Add comment

view details

push time in a month

push eventyui-knk/tapl

yui-knk

commit sha 343bd7d06f9904a5d6f7db01bc688ca64557d450

setCounterClass2

view details

yui-knk

commit sha 7887b93683e9e280fd077eb1ec64abf279acbfe6

instrCounterClass but infinity loop

view details

push time in a month

push eventyui-knk/tapl

yui-knk

commit sha ada15a2bb03bc9869eb887542d9b3b9966bd57c4

SetCounter

view details

push time in a month

push eventyui-knk/tapl

yui-knk

commit sha a5fab83e54ced7ae24315d516806046978a2c497

18.7.1 backupCounter2Class

view details

yui-knk

commit sha 782aff9768f9e10f35e140b21eda7c603f326682

funnyBackupCounterClass

view details

push time in a month

push eventyui-knk/tapl

yui-knk

commit sha 3e955641fd3238a2ddde5024694ea607b59ec82c

Practice 5

view details

yui-knk

commit sha c7e89677521cc08b6a3e3b645aa0f0b4f9369618

Practice 5.2.6

view details

yui-knk

commit sha 0012ca8f8230b2a5bc3df5842ca2c2e5ecd42b79

Practice 5.3.6

view details

yui-knk

commit sha 5d439c7fcadd99b1a1cd96069c427fd84836858f

Ch05

view details

yui-knk

commit sha 94902ab4d5b93ab7c53f3ed6e796f6a5f65deca4

Ch07: Copy "untyped" Ref: http://www.cis.upenn.edu/~bcpierce/tapl/

view details

yui-knk

commit sha 7774a25610523563b11273e69982b0d05019e952

Add some comments

view details

yui-knk

commit sha 86db4d23d7079f15e454508c34362fa36bee26db

counter.ml

view details

yui-knk

commit sha 0b46c57c389fb1c2f91b2e6cd9407c2827d8d28f

newCounter

view details

yui-knk

commit sha bd71a3bdb0e487e9c78a0f44696d4da35729eae2

inc3

view details

yui-knk

commit sha 20caaba102fcca2f7749116ccc79c356786b48ad

counterRep

view details

yui-knk

commit sha 8882a176b04f22551d51683a298a3ce7164e6cc8

counterClass

view details

yui-knk

commit sha cd96bb73dbf6db5eb696db5ef58f2edd0394824c

counterClass

view details

yui-knk

commit sha 13f4eedc1c901fda9421dcd90da03a6b8d0b2e04

backupCounterClass

view details

push time in a month

create barnchyui-knk/bison

branch : more_trace

created branch time in a month

push eventyui-knk/bison

yui-knk

commit sha bbfca62c57c1b3784d3c34c1d3756bc313296faf

Print Tokens

view details

push time in a month

push eventyui-knk/bison

yui-knk

commit sha e5f6d3e9bed3f5b3d0e3ff973ffa1902f867b6e0

Print Tokens

view details

push time in a month

push eventyui-knk/bison

yui-knk

commit sha 4368392c9083464085e8aa34e53732d700768f7a

Print Tokens

view details

push time in a month

push eventyui-knk/bison

Akim Demaille

commit sha e31f92495ce14a5d924b148c8ea1470003cc47c1

build: disable -Wtype-limits, except in the test suite The current implementation of lib/intprops.h results in "unsigned < 0" comparisons, which triggers warnings. See https://lists.gnu.org/archive/html/bug-bison/2019-10/msg00061.html * configure.ac (warn_common): Disable -Wtype-limits. (warn_tests): Restore it.

view details

Akim Demaille

commit sha 97d6da0c5b45c481699a3c688fcc5e73375f612f

parser: clarify version checking * src/parse-gram.y: Use the same conventions for gnulib as elsewhere: <header.h>. (str_to_version): New. (handle_require): Use it. Prefer < to >.

view details

Akim Demaille

commit sha 4e0de4df8c5adc82f80e159d9ba8fbb25c043a36

CI: try GCC9 and Clang9 The logs show: Disallowing sources: llvm-toolchain-bionic-8, ubuntu-toolchain-r-test To add unlisted APT sources, follow instructions in https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon * .travis.yml: Remove a few apt sources which are ignored in Bionic (e.g., see https://github.com/travis-ci/apt-source-safelist/issues/410). Where needed, use sources/sourceline instead. Also, don't use -DNDEBUG with older builds.

view details

Akim Demaille

commit sha 41b1f828ae39518d75948035c99ba053bc402752

tests: beware of GCC9 warnings in push mode This is really weird: GCC points to the LHS of the assignment... 260. headers.at:184: testing Sane headers: api.pure api.push-pull=both ... tests/headers.at:184: COLUMNS=1000; export COLUMNS; bison --color=no -fno-caret -d -o input.c input.y tests/headers.at:184: $CC $CFLAGS $CPPFLAGS -c -o input.o input.c stderr: input.c: In function 'yyparse': input.c:1276:16: error: 'yylval' may be used uninitialized in this function [-Werror=maybe-uninitialized] 1276 | yylval = *yypushed_val; | ~~~~~~~^~~~~~~~~~~~~~~ input.c: In function 'yypull_parse': input.c:1276:16: error: 'yylval' may be used uninitialized in this function [-Werror=maybe-uninitialized] 1276 | yylval = *yypushed_val; | ~~~~~~~^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors stdout: tests/headers.at:184: exit code was 1, expected 0 See also d87c8ac79ab844d6a7a4f5103dcf7a842d18b611 and 9645a2b20ee7cbfa8bb4ac2237f87d598afe349c. * tests/headers.at (Several parsers, Several parsers): Disable these warnings when in push parser.

view details

Akim Demaille

commit sha 8b87da8d12a0f073d4b8667ae1562ec7a438ce35

bootstrap: relieve developpers from Gettext version mismatch issues * .travis.yml (compile): Move the workaround from here... * bootstrap.conf (bootstrap_epilogue): to there.

view details

Akim Demaille

commit sha c6e4b260e0de265e1888822682054c32498541d8

doc: update README * README: Be clearer that README-hacking _must_ be read. Convert to Markdown.

view details

Akim Demaille

commit sha 717be0a0f0837a2ee356f42daa475d0bf7d6333d

CI: rename jobs * .travis.yml (compile, test): Rename as... (dist, check): these, which are more traditional for GNU projects.

view details

Akim Demaille

commit sha 0073b5ea5f365ad6f5b5d38bf6dbc4ed6165800d

CI: formatting changes * .travis.yml: Use the single line form of lists, when reduced to a singletons.

view details

Akim Demaille

commit sha fdef997432f7141d8eaf4396f61708fd3c52ec9d

build: disable -Wtautological-constant-out-of-range-compare Also see e31f92495ce14a5d924b148c8ea1470003cc47c1 and https://lists.gnu.org/archive/html/bug-bison/2019-10/msg00061.html * configure.ac (warn_common): Disable -Wtautological-constant-out-of-range-compare. (warn_tests): Restore it.

view details

Akim Demaille

commit sha d76ea5ce06f7b69c516deef0e730fddd4fc975b9

style: reduce scope in derives * src/derives.c: here. And prefer prefix to postfix increment.

view details

Akim Demaille

commit sha d6fe39cd18ee0db3a6833fbae86508cf1f68b4a8

gnulib: update To get bitset_free accept NULL. See https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00054.html

view details

Akim Demaille

commit sha ec64a0bc7eabb45783e7031729c5b1ff37821cbd

main: also free memory on errors * src/derives.c (derives_free): Beware of NULL. * src/main.c (main): Let the 'finish' label include memory release.

view details

Akim Demaille

commit sha 048730c6910f16ca66068e6a132254b6b096ae59

style: pacify syntax-check * doc/.gitignore, src/complain.c, src/getargs.c, * src/output.c: here.

view details

kaneko y

commit sha c86b7815fc74bf827b845d01e31db8d4da8ccc5d

yacc.c: fix a typo * data/skeletons/yacc.c (yysetstate): fix comment.

view details

Yuichiro Kaneko

commit sha 3945beb1d2abd171c4d813b7b55228c31681b4c3

style: update comment in reader.c rrhs and rlhs were removed by b2ed6e5826e772162719db595446b2c58e4ac5d6. * src/reader.c (packgram): Update comment.

view details

push time in a month

push eventyui-knk/bison

Akim Demaille

commit sha c483b6593fba38b4b1637e946f496eb0c8edfdb2

tests: refactor the handling of Perl Let's make a difference between places where Perl is required for the test (AT_PERL_REQUIRE), and the places where it's used to run the test, but it's not not to run the test (AT_PERL_CHECK). * tests/local.at (AT_REQUIRE): New. (AT_PERL_CHECK, AT_PERL_REQUIRE): New. Use them where appropriate. * tests/local.mk ($(TESTSUITE)): Beware not to start the line with '-pi' if Perl is empty, as Make understands this as "it's ok to fail". Which it is not.

view details

Akim Demaille

commit sha 8631f35bf90942f0bbd7009d149ecf6f3fb1e398

tests: factor the generation of files without the final eol AFAICT Autotest 2.69 still does not support AT_DATA without the final eol. * tests/local.at (AT_DATA_NO_FINAL_EOL): New. * tests/input.at: Use it.

view details

Akim Demaille

commit sha ab3621678a582e7bde46482cf970ffb6b1ef154d

tests: use a portable 'truncate' implementation Suggested by Paul Eggert. https://lists.gnu.org/archive/html/bison-patches/2019-10/msg00044.html * tests/local.at (AT_DATA_NO_FINAL_EOL): Use dd instead of perl.

view details

Akim Demaille

commit sha 2a0185b69323756acacf0e88ae5071c5993ce041

tests: avoid $(...) Reported by Paul Eggert. * tests/local.at (AT_DATA_NO_FINAL_EOL): here.

view details

Akim Demaille

commit sha a428a9fa6c9701cf65932fef68eeeccf683ac945

yacc: style changes * data/skeletons/yacc.c: Move call to lac discard to clarify the shifting of the token. Like in lalr1.cc.

view details

Akim Demaille

commit sha d563a0170965a82f6c7d9d4021c47e86db3cde17

glr: style changes * data/skeletons/glr.c (yytnamerr): here. (yyprocessOneStack): Initialize variables.

view details

Akim Demaille

commit sha e5cbac98b66ddb61fbbadfc77ffcfcd87ea3cb71

yacc: rename types for states * data/skeletons/yacc.c (yy_state_num): Rename as... (yy_state_t): this. (yy_state_fast_t): New. Use it.

view details

Akim Demaille

commit sha ee35055b490dc01faaa7310f4ed84dda0031c26c

TODO: update

view details

Akim Demaille

commit sha b47340982b38e5583b444454e5b6035cb33e1d9c

TODO: more updates

view details

Paul Eggert

commit sha 68cc2631a4dddc7e1ee091278874bbd11195da9b

autoconf:update

view details

Paul Eggert

commit sha 08dd5e9feb9690d80fe920252d169232e4b183a0

gnulib:update

view details

Paul Eggert

commit sha 7a557ee7fe7d18400a161c696a8ad32d374caf5e

c: improve port of stdint.h usage to pre-C99 Oracle Solaris Studio 12.3 (Sun C 5.12 2011/11/16) by default does not conform to C99; it defines __STDC_VERSION__ to be 199409L, so the Bison code does not include <stdint.h> (not required by C89 amendment 1) even though this compiler does have <stdint.h>. On this platform <limits.h> defines INT_LEAST8_MAX (POSIX allows this) so the skeleton got confused and thought that <stdint.h> had been included even though it wasn’t. * data/skeletons/c.m4 (b4_c99_int_type_define) [!__PTRDIFF_MAX__]: Always include <limits.h>. (YY_STDINT_H): Define when <stdint.h> was included. All uses of expressions like ‘defined INT_LEAST8_MAX’ changed to ‘defined YY_STDINT_H’, since Sun C 5.12 <limits.h> defines macros like INT_LEAST8_MAX but does not declare types like int_least8_t.

view details

Paul Eggert

commit sha 83c9051a64e70b07904a0f6abe7988f75e59884e

c: port YY_ATTRIBUTE_UNUSED to Sun C 5.12 Sun C 5.12 defines __SUNPRO_C to 0x5120 but diagnoses ‘__attribute__ ((__unused__))’. Change the ifdefs to use the same method as Gnulib in this area. * data/skeletons/c.m4 (YY_ATTRIBUTE): Remove, since not all attributes were added in the same compiler version. (YY_ATTRIBUTE_PURE, YY_ATTRIBUTE_UNUSED): Use specific GCC version for each attribute. Pay no attention to __SUNPRO_C. * tests/headers.at (Several parsers): Tighten tests accordingly.

view details

Paul Eggert

commit sha 15c1b913cf0831cba7c1e57d656134e4a630dee2

bison: check version numbers more carefully * src/parse-gram.y: Include intprops.h. (handle_require): Don’t indulge in undefined behavior if the major or minor number is out of range. Instead, check that the resulting value is nonnegative, fits in int, and that the minor number is less than 100. Also, check that a number was parsed.

view details

Paul Eggert

commit sha 052215a138ab6a4091d59ba95565e2d0cef5f35f

bison: check for int overflow when scanning * src/scan-gram.l: Include errno.h, for errno. (scan_integer, handle_syncline): Check for integer overflow. * tests/input.at (too-large.y): Adjust to match new diagnostics.

view details

Paul Eggert

commit sha 8a4ec5d4e4decd58a151b68ab0288b0925124dc0

bison: check for int overflow in token numbers * src/symtab.c: Include intprops.h (symbol_user_token_number_set): Don’t allow user_token_number == INT_MAX because too much other code adds 1 to the user token number. (symbols_token_translations_init): Complain on integer overflow instead of indulging in undefined behavior.

view details

Paul Eggert

commit sha 071f43d5b757dd4a1914847759419ba7fb968be3

tests: port to Solaris 10 sed As documented in the Autoconf manual, Solaris 10 sed rejects script labels contianing more than 7 characters. POSIX requires support for at least 8 characters, but we might as well be portable to Solaris 10 which is still supported. * tests/local.at (AT_SETS_CHECK): Use only the first 7 characters in sed labels.

view details

Paul Eggert

commit sha 5c2c9fcb17a912835a9b0632d4e8d1a5e79fc2da

tests: port to Solaris 10 grep * tests/scanner.at (Token numbers: $1): Use $EGREP, not grep -E.

view details

Paul Eggert

commit sha 693e69f289fe25be6ebac0814037810931c4e6df

regen

view details

Paul Eggert

commit sha 54c5d5d1b400ccb1ee9a8d39140e804a4a42f02d

c++: port to Sun C++ 5.12 The documentation for Oracle Solaris Studio 12.3 (Sun C++ 5.12 2011/11/16) says it supports C++03. This compiler rejects the location.cc use of std::max for some reason; I don’t know why since I don’t use C++ as a rule. The simplest workaround is to open-code ‘max’. * data/skeletons/location.cc (add_): Do max by hand rather than relying on std::max. Don’t include <algorithm.h>; no longer needed.

view details

push time in a month

push eventyui-knk/bison

Akim Demaille

commit sha c483b6593fba38b4b1637e946f496eb0c8edfdb2

tests: refactor the handling of Perl Let's make a difference between places where Perl is required for the test (AT_PERL_REQUIRE), and the places where it's used to run the test, but it's not not to run the test (AT_PERL_CHECK). * tests/local.at (AT_REQUIRE): New. (AT_PERL_CHECK, AT_PERL_REQUIRE): New. Use them where appropriate. * tests/local.mk ($(TESTSUITE)): Beware not to start the line with '-pi' if Perl is empty, as Make understands this as "it's ok to fail". Which it is not.

view details

Akim Demaille

commit sha 8631f35bf90942f0bbd7009d149ecf6f3fb1e398

tests: factor the generation of files without the final eol AFAICT Autotest 2.69 still does not support AT_DATA without the final eol. * tests/local.at (AT_DATA_NO_FINAL_EOL): New. * tests/input.at: Use it.

view details

Akim Demaille

commit sha ab3621678a582e7bde46482cf970ffb6b1ef154d

tests: use a portable 'truncate' implementation Suggested by Paul Eggert. https://lists.gnu.org/archive/html/bison-patches/2019-10/msg00044.html * tests/local.at (AT_DATA_NO_FINAL_EOL): Use dd instead of perl.

view details

Akim Demaille

commit sha 2a0185b69323756acacf0e88ae5071c5993ce041

tests: avoid $(...) Reported by Paul Eggert. * tests/local.at (AT_DATA_NO_FINAL_EOL): here.

view details

Akim Demaille

commit sha a428a9fa6c9701cf65932fef68eeeccf683ac945

yacc: style changes * data/skeletons/yacc.c: Move call to lac discard to clarify the shifting of the token. Like in lalr1.cc.

view details

Akim Demaille

commit sha d563a0170965a82f6c7d9d4021c47e86db3cde17

glr: style changes * data/skeletons/glr.c (yytnamerr): here. (yyprocessOneStack): Initialize variables.

view details

Akim Demaille

commit sha e5cbac98b66ddb61fbbadfc77ffcfcd87ea3cb71

yacc: rename types for states * data/skeletons/yacc.c (yy_state_num): Rename as... (yy_state_t): this. (yy_state_fast_t): New. Use it.

view details

Akim Demaille

commit sha ee35055b490dc01faaa7310f4ed84dda0031c26c

TODO: update

view details

Akim Demaille

commit sha b47340982b38e5583b444454e5b6035cb33e1d9c

TODO: more updates

view details

Paul Eggert

commit sha 68cc2631a4dddc7e1ee091278874bbd11195da9b

autoconf:update

view details

Paul Eggert

commit sha 08dd5e9feb9690d80fe920252d169232e4b183a0

gnulib:update

view details

Paul Eggert

commit sha 7a557ee7fe7d18400a161c696a8ad32d374caf5e

c: improve port of stdint.h usage to pre-C99 Oracle Solaris Studio 12.3 (Sun C 5.12 2011/11/16) by default does not conform to C99; it defines __STDC_VERSION__ to be 199409L, so the Bison code does not include <stdint.h> (not required by C89 amendment 1) even though this compiler does have <stdint.h>. On this platform <limits.h> defines INT_LEAST8_MAX (POSIX allows this) so the skeleton got confused and thought that <stdint.h> had been included even though it wasn’t. * data/skeletons/c.m4 (b4_c99_int_type_define) [!__PTRDIFF_MAX__]: Always include <limits.h>. (YY_STDINT_H): Define when <stdint.h> was included. All uses of expressions like ‘defined INT_LEAST8_MAX’ changed to ‘defined YY_STDINT_H’, since Sun C 5.12 <limits.h> defines macros like INT_LEAST8_MAX but does not declare types like int_least8_t.

view details

Paul Eggert

commit sha 83c9051a64e70b07904a0f6abe7988f75e59884e

c: port YY_ATTRIBUTE_UNUSED to Sun C 5.12 Sun C 5.12 defines __SUNPRO_C to 0x5120 but diagnoses ‘__attribute__ ((__unused__))’. Change the ifdefs to use the same method as Gnulib in this area. * data/skeletons/c.m4 (YY_ATTRIBUTE): Remove, since not all attributes were added in the same compiler version. (YY_ATTRIBUTE_PURE, YY_ATTRIBUTE_UNUSED): Use specific GCC version for each attribute. Pay no attention to __SUNPRO_C. * tests/headers.at (Several parsers): Tighten tests accordingly.

view details

Paul Eggert

commit sha 15c1b913cf0831cba7c1e57d656134e4a630dee2

bison: check version numbers more carefully * src/parse-gram.y: Include intprops.h. (handle_require): Don’t indulge in undefined behavior if the major or minor number is out of range. Instead, check that the resulting value is nonnegative, fits in int, and that the minor number is less than 100. Also, check that a number was parsed.

view details

Paul Eggert

commit sha 052215a138ab6a4091d59ba95565e2d0cef5f35f

bison: check for int overflow when scanning * src/scan-gram.l: Include errno.h, for errno. (scan_integer, handle_syncline): Check for integer overflow. * tests/input.at (too-large.y): Adjust to match new diagnostics.

view details

Paul Eggert

commit sha 8a4ec5d4e4decd58a151b68ab0288b0925124dc0

bison: check for int overflow in token numbers * src/symtab.c: Include intprops.h (symbol_user_token_number_set): Don’t allow user_token_number == INT_MAX because too much other code adds 1 to the user token number. (symbols_token_translations_init): Complain on integer overflow instead of indulging in undefined behavior.

view details

Paul Eggert

commit sha 071f43d5b757dd4a1914847759419ba7fb968be3

tests: port to Solaris 10 sed As documented in the Autoconf manual, Solaris 10 sed rejects script labels contianing more than 7 characters. POSIX requires support for at least 8 characters, but we might as well be portable to Solaris 10 which is still supported. * tests/local.at (AT_SETS_CHECK): Use only the first 7 characters in sed labels.

view details

Paul Eggert

commit sha 5c2c9fcb17a912835a9b0632d4e8d1a5e79fc2da

tests: port to Solaris 10 grep * tests/scanner.at (Token numbers: $1): Use $EGREP, not grep -E.

view details

Paul Eggert

commit sha 693e69f289fe25be6ebac0814037810931c4e6df

regen

view details

Paul Eggert

commit sha 54c5d5d1b400ccb1ee9a8d39140e804a4a42f02d

c++: port to Sun C++ 5.12 The documentation for Oracle Solaris Studio 12.3 (Sun C++ 5.12 2011/11/16) says it supports C++03. This compiler rejects the location.cc use of std::max for some reason; I don’t know why since I don’t use C++ as a rule. The simplest workaround is to open-code ‘max’. * data/skeletons/location.cc (add_): Do max by hand rather than relying on std::max. Don’t include <algorithm.h>; no longer needed.

view details

push time in 2 months

push eventyui-knk/parzer

yui-knk

commit sha a8a5010e936e55dc93498d95e8ffe46dc6001db3

Add parse3.y

view details

push time in 2 months

push eventyui-knk/bison

Akim Demaille

commit sha 4971409e392c5b9a326a9a7ec1c0e4d990327f4f

style: change misleading macro argument name * data/skeletons/glr.c, data/skeletons/yacc.c (yypact_value_is_default): It does not take a rule number as argument.

view details

Akim Demaille

commit sha a57e74a5bf4ebaaba6eb592f8c5b5047fdc6bc79

style: prefer symbolic values rather than litterals Instead of #define YYPACT_NINF -130 #define yypact_value_is_default(Yystate) \ (!!((Yystate) == (-130))) generate #define YYPACT_NINF (-130) #define yypact_value_is_default(Yyn) \ ((Yyn) == YYPACT_NINF) * data/skeletons/c.m4 (b4_table_value_equals): Add support for $4. * data/skeletons/glr.c, data/skeletons/yacc.c: Use it. Also, use shorter macro argument names, the name of the macro is clear enough.

view details

Akim Demaille

commit sha 871c02b327d16bf131ab5352aa9f23650604a4d4

yacc: introduce a type for states * data/skeletons/yacc.c (yy_state_num): New. Use it for arrays of states.

view details

Akim Demaille

commit sha 2ca6b719674228fa2f77f6627e78111a757b83cc

yacc: use the most appropriate integral type for state numbers Currently we properly use the "best" integral type for tables, including those storing state numbers. However the variables for state numbers used in yyparse (and its dependencies such as yy_stack_print) still use int16_t invariably. As a consequence, very large models overflow these variables. Let's use the "best" type for these variables too. It turns out that we can still use 16 bits for twice larger automata: stick to unsigned types. However using 'unsigned' when 16 bits are not enough is troublesome and generates tons of warnings about signedness issues. Instead, let's use 'int'. Reported by Tom Kramer. https://lists.gnu.org/archive/html/bug-bison/2019-09/msg00018.html * data/skeletons/yacc.c (b4_state_num_type): New. (yy_state_num): Be computed from YYNSTATES. * tests/linear: New. * tests/torture.at (State number type): New. Use it.

view details

Paul Eggert

commit sha 4d9ff272cf4402540b8c75b393373b713ce76431

Prefer signed types for indexes in skeletons * NEWS: Mention this. * data/skeletons/c.m4 (b4_int_type): Prefer char if it will do, and prefer signed types to unsigned if either will do. * data/skeletons/glr.c (yy_reduce_print): No need to convert rule line to unsigned long. (yyrecoverSyntaxError): Put action into an int to avoid GCC warning of using a char subscript. * data/skeletons/lalr1.cc (yy_lac_check_, yysyntax_error_): Prefer ptrdiff_t to size_t. * data/skeletons/yacc.c (b4_int_type): Prefer signed types to unsigned if either will do. * data/skeletons/yacc.c (b4_declare_parser_state_variables): (YYSTACK_RELOCATE, YYCOPY, yy_lac_stack_realloc, yy_lac) (yytnamerr, yysyntax_error, yyparse): Prefer ptrdiff_t to size_t. (YYPTRDIFF_T, YYPTRDIFF_MAXIMUM): New macros. (YYSIZE_T): Fix "! defined YYSIZE_T" typo. (YYSIZE_MAXIMUM): Take the minimum of PTRDIFF_MAX and SIZE_MAX. (YYSIZEOF): New macro. (YYSTACK_GAP_MAXIMUM, YYSTACK_BYTES, YYSTACK_RELOCATE) (yy_lac_stack_realloc, yyparse): Use it. (YYCOPY, yy_lac_stack_realloc): Cast to YYSIZE_T to pacify GCC. (yy_reduce_print): Use int instead of unsigned long when int will do. (yy_lac_stack_realloc): Prefer long to unsigned long when either will do. * tests/regression.at: Adjust to these changes.

view details

Paul Eggert

commit sha 133edcd248bfc16af2aa017e1581f22a1609227e

Prefer signed to unsigned integers This patch contains more fixes to prefer signed to unsigned integer types, as modern tools like 'gcc -fsanitize=undefined' can check for signed integer overflow but not unsigned overflow. * NEWS: Document the API change. * boostrap.conf (gnulib_modules): Add intprops. * data/skeletons/glr.c: Include stddef.h and stdint.h, since this skeleton can assume C99 or later. (YYSIZEMAX): Now signed, and the minimum of SIZE_MAX and PTRDIFF_MAX. (yybool) [!__cplusplus]: Now signed (which is how bool behaves). (YYTRANSLATE): Avoid use of unsigned, and make the macro safe even for values greater than UINT_MAX. (yytnamerr, struct yyGLRState, struct yyGLRStateSet, struct yyGLRStack) (yyaddDeferredAction, yyinitStateSet, yyinitGLRStack) (yyexpandGLRStack, yymarkStackDeleted, yyremoveDeletes) (yyglrShift, yyglrShiftDefer, yy_reduce_print, yydoAction) (yyglrReduce, yysplitStack, yyreportTree, yycompressStack) (yyprocessOneStack, yyreportSyntaxError, yyrecoverSyntaxError) (yyparse, yy_yypstack, yypstack, yypdumpstack): * tests/input.at (Torturing the Scanner): Prefer ptrdiff_t to size_t. * data/skeletons/c++.m4 (b4_yytranslate_define): * src/AnnotationList.c (AnnotationList__computePredecessorAnnotations): * src/AnnotationList.h (AnnotationIndex): * src/InadequacyList.h (InadequacyListNodeCount): * src/closure.c (closure_new): * src/complain.c (error_message, complains, complain_indent) (complain_args, duplicate_directive, duplicate_rule_directive): * src/gram.c (nritems, ritem_print, grammar_dump): * src/ielr.c (ielr_compute_ritem_sees_lookahead_set) (ielr_item_has_lookahead, ielr_compute_annotation_lists) (ielr_compute_lookaheads): * src/location.c (columns, boundary_print, location_print): * src/muscle-tab.c (muscle_percent_define_insert) (muscle_percent_define_check_values): * src/output.c (prepare_rules, prepare_actions): * src/parse-gram.y (id, handle_require): * src/reader.c (record_merge_function_type, packgram): * src/reduce.c (nuseless_productions, nuseless_nonterminals) (inaccessable_symbols): * src/relation.c (relation_print): * src/scan-code.l (variant, variant_table_size, variant_count) (variant_add, get_at_spec, show_sub_message, show_sub_messages) (parse_ref): * src/scan-gram.l (<SC_ESCAPED_STRING,SC_ESCAPED_CHARACTER>) (scan_integer, convert_ucn_to_byte, handle_syncline): * src/scan-skel.l (at_complain): * src/symtab.c (complain_symbol_redeclared) (complain_semantic_type_redeclared, complain_class_redeclared) (symbol_class_set, complain_user_token_number_redeclared): * src/tables.c (conflict_tos, conflrow, conflict_table) (conflict_list, save_row, pack_vector): * tests/local.at (AT_YYLEX_DEFINE(c)): Prefer signed to unsigned integer. * data/skeletons/lalr1.cc (yy_lac_check_): * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): * tests/local.at (AT_YYLEX_DEFINE(c)): Omit now-unnecessary casts. * data/skeletons/location.cc (b4_location_define): * doc/bison.texi (Mfcalc Lexer, C++ position, C++ location): Prefer int to unsigned for line and column numbers. Change example to abort explicitly on memory exhaustion, and fix an off-by-one bug that led to undefined behavior. * data/skeletons/stack.hh (stack::operator[]): Also allow ptrdiff_t indexes. (stack::pop, slice::slice, slice::operator[]): Index arg is now ptrdiff_t, not int. (stack::ssize): New method. (slice::range_): Now ptrdiff_t, not int. * data/skeletons/yacc.c (b4_state_num_type): Remove. All uses replaced by b4_int_type. (YY_CONVERT_INT_BEGIN, YY_CONVERT_INT_END): New macros. (yylac, yyparse): Use them around conversions that -Wconversion would give false alarms about. Omit unnecessary casts. (yy_stack_print): Use int rather than unsigned, and omit a cast that doesn’t seem to be needed here any more. * examples/c++/variant.yy (yylex): * examples/c++/variant-11.yy (yylex): Omit no-longer-needed conversions to unsigned. * src/InadequacyList.c (InadequacyList__new_conflict): Don’t assume *node_count is unsigned. * src/output.c (muscle_insert_unsigned_table): Remove; no longer used.

view details

Paul Eggert

commit sha 67dcef357cd33fab4c11d51ccabc0c8aae4ae933

regen

view details

Paul Eggert

commit sha ff2f02815b24332cb4ea9dcef806fdbc1ed8e81a

Adjust ‘Big horizontal’ test case * tests/torture.at (Big horizontal): Adjust to recent changes with integers. If there are states 0..256, Bison now uses a signed rather than an unsigned 16-bit integer.

view details

Akim Demaille

commit sha be92ad1eb4fc3b665b1bb4eda82e4c744e501765

CI: remove the symlink before creating it Currently we fail if we rerun a job that succeeded to push the tarball.

view details

Akim Demaille

commit sha d96fff6115c5ddc17e7edc1163d42edbdfd9a248

tests: be robust to -DNDEBUG input.y: In function 'yylex': input.y:67:7: error: unused variable 'input_elts' [-Werror=unused-variable] int input_elts = sizeof input / sizeof input[0]; ^~~~~~~~~~ cc1: all warnings being treated as errors * tests/input.at, tests/local.at: Avoid that.

view details

Akim Demaille

commit sha 5df33278b4bd4cc244204fe80ab04570a70b9598

c++: fixes for old compilers On the CI with GCC 6: examples/c++/calc++/parser.cc:845:5: error: 'ptrdiff_t' was not declared in this scope ptrdiff_t yycount = 0; ^~~~~~~~~ examples/c++/calc++/parser.cc:845:5: note: suggested alternatives: /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:202:28: note: 'std::ptrdiff_t' typedef __PTRDIFF_TYPE__ ptrdiff_t; ^~~~~~~~~ * data/skeletons/lalr1.cc: Qualify ptrdiff_t and size_t with std::.

view details

Akim Demaille

commit sha 843ef49bc3f557554c53f5d5322c0f25fed2221a

lalr1.cc: simplify uses of size_t * data/skeletons/stack.hh (stack::index_type): New type. (stack::size, stack::operator[]): Be about an index_type rather than a size_type and an int.

view details

Akim Demaille

commit sha 032a52be6ee002016a22453365ffb4f578a15e4d

c++: fix comments suggesting to use %require * data/skeletons/location.cc, data/skeletons/stack.hh: Here.

view details

Paul Eggert

commit sha 361004aabe3f3676e0f8917ba64faedcd0910643

Simplify mfcalc error handling * doc/bison.texi (Mfcalc Symbol Table, Mfcalc Lexer): Don’t abort on memory allocation failure or integer overflow. Instead, comment that these things aren’t checked for.

view details

Paul Eggert

commit sha 39eb80bdbc6e806c99b59819c74a282c8e027783

* doc/bison.texi (Table of Symbols): Mention memory exhaustion.

view details

Akim Demaille

commit sha 11332204161aa59e7d8df24749277a6f2dd9a819

tests: check more state numbers * tests/torture.at (State number type): Also check 128, 129 and 32768.

view details

Akim Demaille

commit sha bc96b757ca129aa63e41aa6e5dcfbbbad3916e01

yacc.c: fix warnings about undefined macros For instance with GCC 4.9 and --enable-gcc-warnings: 25. input.at:1201: testing Torturing the Scanner ... ../../tests/input.at:1344: $CC $CFLAGS $CPPFLAGS -c -o input.o input.c stderr: input.c:239:18: error: "__STDC_VERSION__" is not defined [-Werror=undef] # elif 199901 <= __STDC_VERSION__ ^ input.c:256:18: error: "__STDC_VERSION__" is not defined [-Werror=undef] # elif 199901 <= __STDC_VERSION__ ^ * data/skeletons/yacc.c: Check that __STDC_VERSION__ is defined before using it.

view details

Akim Demaille

commit sha 5709f94a91155149fd69479b3dd179de674935b7

yacc.c: use casts instead of pragmas when losing integer width For instance with Clang 4, 8, etc.: input.c:1166:12: error: implicit conversion loses integer precision: 'int' to 'yy_state_num' (aka 'signed char') [-Werror,-Wconversion] *yyssp = yystate; ~ ^~~~~~~ And GCC 8: input.c:1166:12: error: implicit conversion loses integer precision: 'int' to 'yy_state_num' (aka 'signed char') [-Werror,-Wimplicit-int-conversion] *yyssp = yystate; ~ ^~~~~~~ * data/skeletons/yacc.c (YY_CONVERT_INT_BEGIN): Remove. Adjust callers.

view details

Paul Eggert

commit sha 41e84cddc778d2a8902b1cdff6a85f3ea3422512

Port lexcalc scan.l to Solaris 10 * examples/c/lexcalc/scan.l: Include errno.h.

view details

Paul Eggert

commit sha b75b05528803de1582d7bcfbd3480ee70a0e987b

Port ARGMATCH_DEFINE_GROUP calls to C99 * src/complain.c, src/getargs.c: Omit ‘;’ after call to ARGMATCH_DEFINE_GROUP, as C99 does not allow ‘;’ there.

view details

push time in 2 months

create barnchyui-knk/bison

branch : print_tokens

created branch time in 2 months

PublicEvent

create barnchyui-knk/bison

branch : fix_typos_yysetstate

created branch time in 2 months

create barnchyui-knk/bison

branch : fix_README

created branch time in 2 months

fork yui-knk/bison

GNU Bison

fork in 2 months

push eventyui-knk/ruby

yui-knk

commit sha 5cc8e8cf01469d934d4e8df41f99487cabd225b1

Add `Parsey.yypact_ninf`

view details

push time in 2 months

push eventyui-knk/ruby

David Rodríguez

commit sha 6711343d5a630cc857f0fa503b403edb68415f48

[bundler/bundler] Fix inconsistent lockfile order When Gemfile would specify path sources as relative paths starting with "./", the lockfile would have inconsistent order on `bundle install` and `bundle update`. https://github.com/bundler/bundler/commit/c7532ced89

view details

Benoit Daloze

commit sha 2b0f3aa095a410902b9b2e4fb14f909e0630c1a1

[bundler/bundler] Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION * RUBY_ENGINE and RUBY_ENGINE_VERSION are defined on every modern Ruby. * There is no such constant as TRUFFLERUBY_VERSION or RBX_VERSION. https://github.com/bundler/bundler/commit/f9d910403b

view details

David Rodríguez

commit sha 3f0e19c9fa566de3691b994ef6c2bea8cb5fdb83

[bundler/bundler] Enable retries on flaky spec https://github.com/bundler/bundler/commit/da360659f7

view details

David Rodríguez

commit sha 3c23bb29ecbc0c736e99d23a3c47892d67f3a322

[bundler/bundler] Remove unnecessary exclusions https://github.com/bundler/bundler/commit/c189dfdde0

view details

David Rodríguez

commit sha 41534ce327efb56f3ddb136b5617fe47a89212b5

[bundler/bundler] Make spec pass more resiliently Previously, if bundler-2.1.0.pre.1 would be installed globally, it would fail. Now we force that a locally installed version of bundler is used, so it always passed regardless of which bundler is installed globally. https://github.com/bundler/bundler/commit/764d8e8fd1

view details

David Rodríguez

commit sha 129657ab6aa3cc9496746a6eb780c0dc748e3d20

[bundler/bundler] Normalize style with other artifice files https://github.com/bundler/bundler/commit/f11c9a2b3f

view details

David Rodríguez

commit sha 0aed0bd9ed521799c5d92c6c10ca8fa4476f8b66

[bundler/bundler] Bump rack and sinatra to latest versions https://github.com/bundler/bundler/commit/09ecaf04fa

view details

David Rodríguez

commit sha ee1f3038f1657aa90d75e735e4262fe8d9b3d745

[bundler/bundler] Clarify spec description https://github.com/bundler/bundler/commit/b2abde04aa

view details

David Rodríguez

commit sha 6c6c4c7388c2f1c0f579de363bb0ec66ad851b5b

[bundler/bundler] Use non deprecated way of setting bundler path https://github.com/bundler/bundler/commit/6013c93e81

view details

David Rodríguez

commit sha 7ff0b4fec4cbd763e9bb7be597b54217176a8d86

[bundler/bundler] Fix installation of system bundler Previously it was being installed to the :bundle_path (`/tmp/bundled_app/.bundle`), but the `bundle` helper uses the `system_gem_path("bin/bundle")`. That means the first `bundle install`in the spec was actually failing, but not affecting the test status because of not being called as `bundle!`. https://github.com/bundler/bundler/commit/ad75f75539

view details

David Rodríguez

commit sha 5bff72c912099bc9ac866d0c699ad4a2945d5827

[bundler/bundler] Make sure spec fails if `bundle install` fails https://github.com/bundler/bundler/commit/2ed2bbfdec

view details

David Rodríguez

commit sha 521a2d2beb945a2ce22b4788409f5fb475fea17a

[bundler/bundler] Revert "make system_bundle_bin_path helper and resolve failing tests for ruby < 2.6" This reverts commit e63e844bc7444c6a489fcde0dc7011c6c4807edd. It was introduced to resolve some failing tests at the cost of making the intention of the spec much less clear. Thanks to the previous fixes we have added to this spec, we can revert that patch now. https://github.com/bundler/bundler/commit/b29a40820f

view details

David Rodríguez

commit sha 94e26a97a153950e160445c7afc1e4c62e522740

[bundler/bundler] Bump rspec dependency to 3.8 Because we're using `config.bisect_runner` which is only available from 3.8. https://github.com/bundler/bundler/commit/304a187f72

view details

Masato Ohba

commit sha 6412121b0077cdad8f1fff3da75c2532cd67cd99

[bundler/bundler] Fix typo in comment: attibutes -> attributes https://github.com/bundler/bundler/commit/876545805e

view details

David Rodríguez

commit sha 4913c9b6bf78ae697689f89b99754e346603c68a

[bundler/bundler] Remove unexistent file from exemptions https://github.com/bundler/bundler/commit/8601575490

view details

David Rodríguez

commit sha 4af3665fd91aae87c9fe014778ed7c54245e2f9b

[bundler/bundler] Use a newer debugging gem in docs So that the examples work in currently supported rubies. https://github.com/bundler/bundler/commit/b7d4556cde

view details

David Rodríguez

commit sha cd15d27d10d4f041cf4e60064dae96562c9bd83f

[bundler/bundler] Stop printing deprecation messages during specs Previously under some circunstances (met during some specs), bundler would print deprecations to a separate UI different from "bundler's UI". This UI would not be captured by the specs, and thus would be printed to screen during the specs. This commit fixes that by making sure all deprecation messages always go through bundler's UI. https://github.com/bundler/bundler/commit/220c54b7fa

view details

David Rodríguez

commit sha 8f28ae65a861ba714be824ea3122817abe9f862d

[bundler/bundler] Remove misleading comment in Gemfile Since we no longer use `git` to find out the list of files, the comment is misleading. https://github.com/bundler/bundler/commit/54d85d5349

view details

David Rodríguez

commit sha f48a61fb46304d35043d013c8cf4539c5be1ecab

[bundler/bundler] Commit man pages to source control This has the benefit that: * Allows the installation of bundler as a default gem from rubygems to include man pages. * Removes the need to build man pages during our tests. * Makes working with the manifest easier, because we only have source controlled files, and not a mix of source control and generated files. To make sure they never fall out of sync, we replace the previous `man:build` CI task with a `man:check` task that makes sure the generated man pages are up to date. https://github.com/bundler/bundler/commit/23de1d0177

view details

David Rodríguez

commit sha cb71930351f8978d3c0b06acc14c98a8978f3abe

[bundler/bundler] Remove unexistent folder from exemptions https://github.com/bundler/bundler/commit/0b6d973543

view details

push time in 2 months

more