A Collection of Isabelle Programming Hacks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

103 lines
4.2 KiB

  1. (***********************************************************************************
  2. * Copyright (c) 2005-2021 Achim D. Brucker
  3. *
  4. * All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions are met:
  8. *
  9. * * Redistributions of source code must retain the above copyright notice, this
  10. *
  11. * * Redistributions in binary form must reproduce the above copyright notice,
  12. * this list of conditions and the following disclaimer in the documentation
  13. * and/or other materials provided with the distribution.
  14. *
  15. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  16. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  17. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  19. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  20. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  21. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  22. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  23. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  24. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. *
  26. * SPDX-License-Identifier: BSD-2-Clause
  27. * Repository: https://git.logicalhacking.com/adbrucker/isabelle-hacks/
  28. * Dependencies: None
  29. ***********************************************************************************)
  30. (***********************************************************************************
  31. # Changelog
  32. This comment documents all notable changes to this file in a format inspired by
  33. [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
  34. to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
  35. ## [Unreleased]
  36. ## [1.0.0] - 2021-04-29
  37. - Initial release as part of "Isabelle Hacks".
  38. ***********************************************************************************)
  39. chapter\<open>ML Yacc Library for Isabelle\<close>
  40. theory
  41. "ml_yacc_lib"
  42. imports
  43. Main
  44. begin
  45. ML_file "ml-yacc-lib/base.sig"
  46. ML_file "ml-yacc-lib/join.sml"
  47. ML_file "ml-yacc-lib/lrtable.sml"
  48. ML_file "ml-yacc-lib/stream.sml"
  49. ML_file "ml-yacc-lib/parser2.sml"
  50. (*
  51. The files in the directory "ml-yacc-lib" are part of the sml/NJ language
  52. processing tools. It was modified to work with Isabelle/ML by Achim D. Brucker.
  53. It was downloaded from http://smlnj.cs.uchicago.edu/dist/working
  54. Upstream Authors: The SML/NJ Team <smlnj-dev-list@lists.sourceforge.net>
  55. Copyright: 2003-2008 The SML/NJ Fellowship
  56. 1989-2002 Lucent Technologies
  57. 1991-2003 John Reppy
  58. 1996-1998,2000 YALE FLINT PROJECT
  59. 1992 Vrije Universiteit, The Netherlands
  60. 1989-1992 Andrew W. Appel, James S. Mattson, David R. Tarditi
  61. 1988 Evans & Sutherland Computer Corporation, Salt Lake City, Utah
  62. STANDARD ML OF NEW JERSEY COPYRIGHT NOTICE, LICENSE AND DISCLAIMER.
  63. Copyright (c) 1989-2002 by Lucent Technologies
  64. Permission to use, copy, modify, and distribute this software and its
  65. documentation for any purpose and without fee is hereby granted,
  66. provided that the above copyright notice appear in all copies and that
  67. both the copyright notice and this permission notice and warranty
  68. disclaimer appear in supporting documentation, and that the name of
  69. Lucent Technologies, Bell Labs or any Lucent entity not be used in
  70. advertising or publicity pertaining to distribution of the software
  71. without specific, written prior permission.
  72. Lucent disclaims all warranties with regard to this software,
  73. including all implied warranties of merchantability and fitness. In no
  74. event shall Lucent be liable for any special, indirect or
  75. consequential damages or any damages whatsoever resulting from loss of
  76. use, data or profits, whether in an action of contract, negligence or
  77. other tortious action, arising out of or in connection with the use
  78. or performance of this software.
  79. The SML/NJ distribution also includes code licensed under the same
  80. terms as above, but with "David R. Tarditi Jr. and Andrew W. Appel",
  81. "Vrije Universiteit" or "Evans & Sutherland" instead of "Lucent".
  82. *)
  83. end