aboutsummaryrefslogtreecommitdiffstats
path: root/admin/grammars/python.wy (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-01-01Update copyright year to 2020Paul Eggert1-1/+1
Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
2019-06-19Allow specifying the expected number of shift/reduce conflictsLars Ingebrigtsen1-0/+1
* admin/grammars/grammar.wy: Add %expectedconflicts. * lisp/cedet/semantic/grammar-wy.el (semantic-grammar-wy--keyword-table): Ditto. * lisp/cedet/semantic/grammar.el (semantic-grammar-expected-conflicts): New function. (semantic-grammar-insert-defconst-with-eval): New function. (semantic-grammar-create-package): Output the number of expected shift/reduce conflicts. * lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): Don't output the warning if the number of shift/reduce conflicts is expected. (wisent-expected-conflicts): Made obsolete.
2019-06-18Revert "Add a mechanism to specify expected shift/reduce .wy conflicts"Lars Ingebrigtsen1-1/+0
This reverts commit f21ec24524c705e18674a2e9e4db37b11fa3ebab. *sigh* Revert again because this created a bootstrap problem in a different part of the process.
2019-06-18Add a mechanism to specify expected shift/reduce .wy conflictsLars Ingebrigtsen1-0/+1
* admin/grammars/python.wy: Set the expected number of shift/reduce conflicts to four. * lisp/cedet/semantic/grammar.el (semantic-grammar-expected-conflicts): New function. * lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): Use it to suppress warnings about the expected number of shift/reduce conflicts.
2019-06-18Revert "Add a mechanism to specify expected shift/reduce .wy conflicts"Lars Ingebrigtsen1-1/+0
This reverts commit d715ae8788e16b22f7f68cb82b51a40ad95c78c2. This commit led to a build error, so revert for now.
2019-06-18Add a mechanism to specify expected shift/reduce .wy conflictsLars Ingebrigtsen1-0/+1
* admin/grammars/python.wy: Set the expected number of shift/reduce conflicts to four. * lisp/cedet/semantic/grammar.el (semantic-grammar-expected-conflicts): New function. * lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts): Use it to suppress warnings about the expected number of shift/reduce conflicts.
2019-06-18Comment out useless nonterminals from python.wyLars Ingebrigtsen1-10/+11
2019-05-26Remove Maintainer: when it duplicates Author:Paul Eggert1-1/+0
The convention is that a file with Author: but not Maintainer: means the author is a maintainer, which makes it confusing when a file lists the same person as author and maintainer. Avoid the confusion by removing the duplicate Maintainer: line.
2019-01-01Update copyright year to 2019Paul Eggert1-1/+1
Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
2018-01-01Update copyright year to 2018Paul Eggert1-1/+1
Run admin/update-copyright.
2017-09-13Prefer HTTPS to FTP and HTTP in documentationPaul Eggert1-1/+1
Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
2016-12-31Update copyright year to 2017Paul Eggert1-1/+1
Run admin/update-copyright.
2016-01-01Update copyright year to 2016Paul Eggert1-1/+1
Run admin/update-copyright.
2015-01-01Update copyright year to 2015Paul Eggert1-1/+1
Run admin/update-copyright.
2015-01-01Update copyright year to 2015Paul Eggert1-1/+1
Run admin/update-copyright.
2014-01-01Update copyright year to 2014 by running admin/update-copyright.Paul Eggert1-1/+1
2013-11-29Stop keeping (all but one) generated cedet grammar files in the repositoryGlenn Morris1-2/+6
* configure.ac (SUBDIR_MAKEFILES, AC_CONFIG_FILES): Add admin/grammars Makefile. * Makefile.in (distclean, bootstrap-clean, maintainer-clean): Also clean admin/grammars, if present. * admin/grammars/README: Remove. * admin/grammars/Makefile.in: New file. * admin/grammars/c.by, admin/grammars/java-tags.wy, admin/grammars/js.wy: * admin/grammars/python.wy: Update declarations to match generated outputs. * lisp/Makefile.in (semantic): New. (compile-main): Depend on semantic. * lisp/cedet/semantic/bovine/grammar.el (bovine--make-parser-1): New function, split from bovine-make-parsers. (bovine-make-parsers): Use bovine--make-parser-1. (bovine-batch-make-parser): New function. * lisp/cedet/semantic/wisent/grammar.el (wisent--make-parser-1): New function, split from wisent-make-parsers. (wisent-make-parsers): Use wisent--make-parser-1. (wisent-batch-make-parser): New function. * lisp/cedet/semantic/db.el (semanticdb-save-all-db): Avoid prompting in batch mode. * lisp/cedet/semantic/grammar.el (semantic-grammar-footer-template): Disable version-control and autoloads in the output. (semantic-grammar-create-package): Add option to return nil if output is up-to-date. * lisp/cedet/semantic/bovine/c-by.el, lisp/cedet/semantic/bovine/make-by.el: * lisp/cedet/semantic/bovine/scm-by.el, lisp/cedet/semantic/wisent/javat-wy.el: * lisp/cedet/semantic/wisent/js-wy.el, lisp/cedet/semantic/wisent/python-wy.el: * lisp/cedet/srecode/srt-wy.el: Remove generated files from repository. * .bzrignore: Update for this.
2013-01-01Update copyright notices for 2013.Paul Eggert1-1/+1
2012-10-02Update CEDET from upstream.Chong Yidong1-8/+56
2012-01-05Add 2012 to FSF copyright years for Emacs filesGlenn Morris1-1/+1
2011-11-12Fix typos.Juanma Barranquero1-1/+1
2011-08-12Move etc/grammars to admin/grammars.Chong Yidong1-0/+0
2011-08-02Merge from trunk.Paul Eggert1-0/+1132
2011-07-31Tweak grammar files to match up with variable names used in parser files.Chong Yidong1-1/+1
2011-07-30Fix copyrights for javascript and python grammars.Chong Yidong1-2/+53
Since these grammars were transcribed from the ECMAScript spec (BSD licensed) and Python sources (PSL) respectively, the copyright and license notices must be included in these files.
2011-07-30Fix copyright headers for grammar filesChong Yidong1-18/+16
authored by Eric M. Ludlam, David Ponce, and Klaus Berndl (assignments on file).
2011-07-29Add Semantic grammar files to etc/grammarsChong Yidong1-0/+1083