summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LTanalyze.l
Commit message (Collapse)AuthorAgeFilesLines
* Made private my_yyinput function static (#618)Sean McBride2021-05-041-2/+2
| | | This prevents it being exported as a public symbol.
* Update h5LT files with latest flex and Bison available on jelly (#502)Larry Knox2021-03-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Modify temporary rpath for testing in java example scripts. * Update URL in source file Copyright headers for web copy of COPYING (license) file. * Add release_docs/code-conventions.md file. * Add script to test h5py. * Fix script error. * Add file h5pytest.yml. * Test declaration of counter variables in for loops. * Committing clang-format changes * Committing clang-format changes * Added [] to line 126 of H5LTanalyze.l. Ran bin/genparser with flex v2.6.4 and Bison v3.0.4 on jelly. * Revert "Added [] to line 126 of H5LTanalyze.l." This reverts commit e4a9cee441efa75b16a8ee030c86189e186dd266. * Revert extra commits to match canonical develop. * Added [] to H5LTanalyze.l line 126 to eliminate warning "rule could not be matched". Ran bin/genparser hl/src with flex v2.6.4 and Bison v3.0.4 on jelly. * Added HD to strdup in H5LTparse.y line 338. Ran bin/genparser hlsrc again. * Removed line 126 from H5LTanalyze.l - previous line matches. Added previously removed line 318 of H5LTparse.y to fix hl_test_lite failure. Ran bin/genparser. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Simplified hl parsing (#399)David Young2021-03-151-61/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Stop using global variables to share parse context with the lexer. The lexer uses an unconventional strategy for parsing lexical categories NUMBER (decimal numbers) and STRING (double-quoted strings) that involves sharing the parse context with the lexer using global variables. There are a couple of problems with that. First, the lexer is too complicated for the simple tokenization it performs—it's hard to tell if it is correct. Second, as @seanm points out, the shared global variables spill into the namespace shared by other libraries and application programs—e.g., VTK. * Regenerate source files from *.[yl]. * Replace strndup, which isn't available on Windows, with a custom routine, `trim_quotes`, that produces a copy of its `const char *` argument with leading and trailing double quotes ('"') removed. While I am here, remove the unnecessary statement `BEGIN INITIAL;`, which I should have deleted in a previous commit. * Regenerate .c from .l. * You haven't programmed in C until you have programmed in High-Definition (HD) C. * \#include "H5private.h" for HD* definitions. * Regenerate *.[ch] from *.[yl].
* Update license url part2 (#333)Larry Knox2021-02-171-1/+1
| | | | | | * Modify temporary rpath for testing in java example scripts. * Update URL in source file Copyright headers for web copy of COPYING file - files not in src or test.
* Fix VFD h5repacktest (#20)Allen Byrne2020-10-061-22/+10
| | | | | | | | | | | | | | * h5repacktest VFD fix and formatting changes * Fix memory leak in H5PL__find_plugin_in_path When encountering a directory, the current loop iteration was skipped without freeing the memory allocated for the path. * Refactor parser GCC diagnostic statements * genparser on jelly with default bison/flex Co-authored-by: Michael Kuhn <michael.kuhn@ovgu.de>
* Adds -Wnull-dereference to the warnings we ignore in flex/bisonDana Robinson2020-08-061-0/+7
| | | | generated code (that we have no control over).
* Cleaned up remaining warnings in high-level library.Dana Robinson2020-01-301-1/+0
|
* Add support for GCC9, update warnhist script, and clean up warnings.Quincey Koziol2019-07-031-2/+3
|
* Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to ↵Larry Knox2017-04-251-6/+4
| | | | | | | | | | hdf5_1_10 * commit '54957d37f5aa73912763dbb6e308555e863c43f4': Commit copyright header change for src/H5PLpkg.c which was added after running script to make changes. Add new files in release_docs to MANIFEST. Cimmit changes to Makefile.in(s) and H5PL.c that resulted from running autogen.sh. Merge pull request #407 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10_1 to hdf5_1_10_1 Change copyright headers to replace url referring to file to be removed and replace it with new url for COPYING file.
* [svn-r28553] Merge of r28436 from revise_chunks. Cleans up warnings exposedDana Robinson2015-12-101-0/+5
| | | | | | | by gcc 5.2 in the flex/bison code. Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 serial only
* [svn-r28332] Updated autogen.sh to not run flex/bison.Dana Robinson2015-11-131-0/+6
| | | | | | | | | This was giving a lot of users headaches and the parser code rarely changes. There is now a new script (bin/genparser) which can be run as needed. Tested on: Ubuntu 15.10 (x86_64 Linux 4.2.0) gcc 5.2.1, flex 2.5.39, bison 3.0.2
* [svn-r25496] Description:Quincey Koziol2014-07-301-37/+38
| | | | | | | | | Merge 64-bit ID changes from branch to trunk. (Plus a few minor cleanups that aren't on the branch) Tested on: Mac OSX/64 10.9.4 (amazon) w/C++ & FORTRAN (h5committested on branch already for a week)
* [svn-r24987] HDFFV-8709, HDFFV-8776, HDFFV-8777, HDFFV-8778Allen Byrne2014-04-081-2/+2
| | | | | | Apply user patches, regenerate and patch results for windows. Miminum changes tested locally
* [svn-r24869] Description:Quincey Koziol2014-03-231-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Clean up more compiler warnings, plus merge a few Coverity bug fixes from the hdf5_1_8_coverity branch back to the trunk: r20877: Purpose: Fix coverity issue 1723 Description: Modified test_generate in hl/test_image to close file "f" before exit, even if an error occurs. r20879: Issue 63: change check of return of H5Tget_nmembers to <=0. No need to go futher if call fails as well as empty. r20881: Coverity #659 in Run 46: I changed the Line 442 where it tries to check whether FLAG_PRINTED is TRUE. But it had just been set to FALSE. I took out the condition check in the print statement. Tested on: Mac OSX/64 10.9.2 (amazon) w/C++, FORTRAN & Parallel (too minor to require h5committest)
* [svn-r23854] HDFFV-8302: Add macros/code function to use coorect Windows ↵Allen Byrne2013-07-011-0/+4
| | | | | | (v)snprintf statement. Also fix use other uses of macros for windows. Tested
* [svn-r22754] Issue 8140 - return value is missing for H5LTyyerror in ↵Raymond Lu2012-09-121-0/+1
| | | | | | | | H5LTanalyze.l. I put "return 0" in because the program should continue even though there is an error. Tested on jam - simple change.
* [svn-r14103] A user reported that the files generated from Lex and Yacc in ↵Raymond Lu2007-08-231-3/+3
| | | | | | | the library conflict with his application with Lex and Yacc. To solve the problem of multiple definitions of Lex or Yacc functions or variables, use the -P or -p command option to change the prefix of these functions and variables from yy to H5LTyy. Tested on kagiso, linew, smirom.
* [svn-r13253] Updated all C and C++ style source code files with the THG ↵Albert Cheng2007-02-071-2/+3
| | | | | | | | | copyright notice. Tested platform: Kagiso only since it is only a comment block change. If it works in one machine, it should work in all, I hope. Still need to check the parallel build on copper.
* [svn-r12351] Purpose: Follow-up what's committed yesterday.Raymond Lu2006-05-171-0/+5
| | | | | | | | | | | | Description: Yesterday, a definition of the macro YY_BUF_SIZE of 256KB was committed in, but copper complained it can't be redefined. Solution: Added #ifdef and #undef to make sure the macro is undefined first. Also integrated a complicated compound type test. It reads input from a text file. The datatype is unusually large, of 101 member fields. Platforms tested: h5committest and fuss.
* [svn-r12350] Purpose: Increase capacityRaymond Lu2006-05-161-0/+1
| | | | | | | | | | Description: The default size for input buffer of Lex is only 8K. Some application has input string far bigger than it. Solution: Increase the size by defining YY_BUFFER_SIZE to be 256K (262144) in H5LTanalyze.l Platforms tested: fuss - simple change.
* [svn-r12195] Purpose: Add comments.Raymond Lu2006-04-031-0/+14
| | | | Description: Added copyright comment to the beginning of these two files.
* [svn-r11882] Purpose: RevisionRaymond Lu2006-01-161-4/+9
| | | | | | | | | Description: Revise a few details of H5LTtext_to_dtype() and H5LTdtype_to_text(), 1. changed the DDL definition of string, opaque, and compound types. 2. added a new parameter of H5LT_lang_t type to these two functions. Platforms tested: h5committest and fuss.
* [svn-r11832] Purpose: Rename files and change grammar rule.Raymond Lu2005-12-221-19/+3
| | | | | | | | | | | Description: Renamed lex.yy.c to H5LTanalyze.c, y.tab.c to H5LTparse.c, and y.tab.h to H5LTparse.h in hl/src. Changed definition of opaque type to ommit the tag. Changed the test for opaque type in hl/test, too. Platforms tested: h5committest, fuss, and sleipnir. Misc. update: MANIFEST
* [svn-r11694] Purpose: Bug fixRaymond Lu2005-11-091-0/+1
| | | | | | | | | Description: lex.yy.c for H5LTtext_to_dtype() has been failing to compile on 64-bit SunOS. It has malloc() call but doesn't include stdlib.h. Solution: Include stdlib.h in H5LTanalyze.l. Platforms tested: shanti - simple change.
* [svn-r11693] Purpose: Added copyrightRaymond Lu2005-11-081-1/+19
| | | | | | | Description: Put copyright in the new files for H5LTtext_to_dtype(). Platforms tested: fuss - simple change.
* [svn-r11689] Purpose: Bug fixRaymond Lu2005-11-071-4/+6
| | | | | | | | | Description: The g++ on sleipnir had troubles to compile the H5LTtext_to_dtype() code. Solution: Fixed problems at different places. Platforms tested: h5committest and g++ on sleipnir.
* [svn-r11676] Purpose: New featureRaymond Lu2005-11-031-0/+161
Description: Adding the new function H5LTtext_to_dtype() for converting text description to data type. The next step will be H5LTdtype_to_text(). Solution: Use Lex and Yacc to do parsing of the text. H5LTanalyze.l is the lexer for analyzing the input; H5LTparse.y is the parser. They are not part of HL library, but are used to generate lex.yy.c (from H5LTanalyze.l) as well as y.tab.c and y.tab.h (from H5LTparse.y). The tools used to create these source files are GNU FLEX and YACC on a Linux machine (fuss). The commands are "lex H5LTanalyze.l" and "yacc -d H5LTparse.y". Detailed document will be added later. Platforms tested: h5committest and fuss. Misc. update: MANIFEST