Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to MIT license #20

Merged
merged 33 commits into from
Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
2c8595a
cocom-config.h.in: remove cruft
TheCount Oct 8, 2018
cadb6d6
Remove unneeded endianness check
TheCount Oct 9, 2018
62189e4
Ignore out-of-tree build directories
TheCount Oct 9, 2018
ccae017
Start out-of-tree build with CMake
TheCount Oct 9, 2018
6c8f0a1
Also build C++ library
TheCount Oct 10, 2018
c4d4fd4
Remove dependency on cocom-config.h
TheCount Oct 10, 2018
fef66e4
Install headers and static libraries
TheCount Oct 10, 2018
82754ba
Move documentation into separate subdirectory
TheCount Oct 10, 2018
f282b20
Install documentation
TheCount Oct 10, 2018
c723438
Move ticker files to separate test directory
TheCount Oct 13, 2018
10315e9
Build static ticker library for testing
TheCount Oct 13, 2018
8ce4404
Break up compare_parsers.tst.in
TheCount Oct 13, 2018
db5ec0d
Break up yaep.tst.in
TheCount Oct 18, 2018
ccdcb83
Explicitly mark generated libraries as static
TheCount Oct 18, 2018
019c2c9
Add ticker C++ library
TheCount Oct 19, 2018
dc187ca
Break up yaep++.tst.in
TheCount Oct 19, 2018
1cef350
Remove remnants of old build system
TheCount Oct 19, 2018
0356a79
Test new build system on TravisCI
TheCount Oct 20, 2018
943522e
Have C and C++ output matching error messages
TheCount Oct 20, 2018
11e08d4
Deduplicate test data files
TheCount Oct 20, 2018
410699a
Deduplicate ANSI C tokenizer
TheCount Oct 20, 2018
e001daa
Remove dead code
TheCount Oct 28, 2018
22ac876
Bugfix: do not undo visit flag on second traversal
TheCount Oct 28, 2018
fe8000c
C tests: deduplicate parse tree memory management
TheCount Oct 28, 2018
22418e9
C tests: deduplicate test_syntax_error()
TheCount Nov 2, 2018
c977d89
C tests: deduplicate test_read_token()
TheCount Nov 2, 2018
dd50c88
C tests: deduplicate some test mains
TheCount Nov 3, 2018
05a776d
C tests: deduplicate some test mains
TheCount Nov 3, 2018
a70cbd2
C tests: deduplicate some test mains
TheCount Nov 3, 2018
243f8e9
C++ tests: deduplication
TheCount Nov 4, 2018
e346117
Bugfix: properly init OS::initial_segment_length
TheCount Nov 7, 2018
c362150
Bugfix: avoid out-of-bounds access
TheCount Nov 7, 2018
ed64360
Switch to MIT license
TheCount Nov 10, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,5 @@
*~
*.sw[op]

# Generated files
/config.log
/config.status
/src/C/
/src/C++/
/src/Makefile
/src/cocom-config.h
/src/compare_parsers.tst
/src/libyaep++.a
/src/libyaep.a
/src/sgramm.c
/src/yaep++.tst
/src/yaep.tst
# Build directories
/build*
31 changes: 26 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,42 @@
# YAEP (Yet Another Earley Parser)
#
# Copyright (c) 1997-2018 Vladimir Makarov <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

language: cpp

matrix:
include:
- os: linux
compiler: gcc

- os: osx
compiler: gcc

- os: linux
compiler: clang

- os: osx
compiler: clang

script:
- ./configure
- cd src
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- make
- make test
36 changes: 36 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# YAEP (Yet Another Earley Parser)
#
# Copyright (c) 1997-2018 Vladimir Makarov <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

cmake_minimum_required( VERSION 3.0 )

project( yaep )
enable_testing()

set( CMAKE_C_STANDARD 90 )
set( CMAKE_CXX_STANDARD 11 )

include( GNUInstallDirs )

add_subdirectory( src )
add_subdirectory( test )
add_subdirectory( doc )
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
YAEP (Yet Another Earley Parser)

Copyright (c) 1997-2018 Vladimir Makarov <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* This standalone library is created for convenience.
* The parser development is actually done as a part of the [*Dino* language
project](https://github.com/dino-lang/dino).
* YAEP is licensed under LGPL v.2.
* YAEP is licensed under the MIT license.

# YAEP features:
* It is sufficiently fast and does not require much memory.
Expand Down Expand Up @@ -93,8 +93,9 @@ static void parse (void)
or the YAEP examples in file ``yaep.tst.in``.

# Installing:
* ``<YAEP source path>/configure --srcdir=<YAEP source path> --prefix=<YAEP install directory>``
* ``cd src``
* ``mkdir build``
* ``cd build``
* ``cmake -DCMAKE_BUILD_TYPE=Release`` (make sure you have CMake installed)
* ``make``
* ``make test`` (optional)
* ``make install``
Expand Down
Loading