view tests/agcl/bugs/manykw.syn @ 6:607e3be6bad8

Adjust to the moving target called the C++ standard. Apparently nowadays it's not allowed to define an explicit copy constructor but not an assignment operator. Consequently, defining the explicit copy constructor in terms of the implicit/automatic assignment operator for general convenience no longer works. Add assignment operators. Caution: not tested with the IBM compiler, but there's no particular reason it shouldn't work.
author David A. Holland
date Mon, 30 May 2022 23:46:22 -0400
parents 13d2b8934445
children
line wrap: on
line source

/*
 * AnaGram, A System for Syntax Directed Programming
 * Copyright 2007 David A. Holland. All rights reserved.
 * See the file COPYING for license and usage terms.
 *
 * More than 256 keywords
 */

grammar
 -> word1, eof
 -> word2, eof
 -> word3, eof
 -> word1, word2, eof
 -> word1, word3, eof
 -> word2, word3, eof

eof = '\n' + 0

word1
  -> "word00"
  -> "word01"
  -> "word02"
  -> "word03"
  -> "word04"
  -> "word05"
  -> "word06"
  -> "word07"
  -> "word08"
  -> "word09"
  -> "word0a"
  -> "word0b"
  -> "word0c"
  -> "word0d"
  -> "word0e"
  -> "word0f"
  -> "word10"
  -> "word11"
  -> "word12"
  -> "word13"
  -> "word14"
  -> "word15"
  -> "word16"
  -> "word17"
  -> "word18"
  -> "word19"
  -> "word1a"
  -> "word1b"
  -> "word1c"
  -> "word1d"
  -> "word1e"
  -> "word1f"
  -> "word20"
  -> "word21"
  -> "word22"
  -> "word23"
  -> "word24"
  -> "word25"
  -> "word26"
  -> "word27"
  -> "word28"
  -> "word29"
  -> "word2a"
  -> "word2b"
  -> "word2c"
  -> "word2d"
  -> "word2e"
  -> "word2f"
  -> "word30"
  -> "word31"
  -> "word32"
  -> "word33"
  -> "word34"
  -> "word35"
  -> "word36"
  -> "word37"
  -> "word38"
  -> "word39"
  -> "word3a"
  -> "word3b"
  -> "word3c"
  -> "word3d"
  -> "word3e"
  -> "word3f"
  -> "word40"
  -> "word41"
  -> "word42"
  -> "word43"
  -> "word44"
  -> "word45"
  -> "word46"
  -> "word47"
  -> "word48"
  -> "word49"
  -> "word4a"
  -> "word4b"
  -> "word4c"
  -> "word4d"
  -> "word4e"
  -> "word4f"
  -> "word50"
  -> "word51"
  -> "word52"
  -> "word53"
  -> "word54"
  -> "word55"
  -> "word56"
  -> "word57"
  -> "word58"
  -> "word59"
  -> "word5a"
  -> "word5b"
  -> "word5c"
  -> "word5d"
  -> "word5e"
  -> "word5f"
  -> "word60"
  -> "word61"
  -> "word62"
  -> "word63"
  -> "word64"
  -> "word65"
  -> "word66"
  -> "word67"
  -> "word68"
  -> "word69"
  -> "word6a"
  -> "word6b"
  -> "word6c"
  -> "word6d"
  -> "word6e"
  -> "word6f"
  -> "word70"
  -> "word71"
  -> "word72"
  -> "word73"
  -> "word74"
  -> "word75"
  -> "word76"
  -> "word77"
  -> "word78"
  -> "word79"
  -> "word7a"
  -> "word7b"
  -> "word7c"
  -> "word7d"
  -> "word7e"
  -> "word7f"

word2
  -> "word80"
  -> "word81"
  -> "word82"
  -> "word83"
  -> "word84"
  -> "word85"
  -> "word86"
  -> "word87"
  -> "word88"
  -> "word89"
  -> "word8a"
  -> "word8b"
  -> "word8c"
  -> "word8d"
  -> "word8e"
  -> "word8f"
  -> "word90"
  -> "word91"
  -> "word92"
  -> "word93"
  -> "word94"
  -> "word95"
  -> "word96"
  -> "word97"
  -> "word98"
  -> "word99"
  -> "word9a"
  -> "word9b"
  -> "word9c"
  -> "word9d"
  -> "word9e"
  -> "word9f"
  -> "worda0"
  -> "worda1"
  -> "worda2"
  -> "worda3"
  -> "worda4"
  -> "worda5"
  -> "worda6"
  -> "worda7"
  -> "worda8"
  -> "worda9"
  -> "wordaa"
  -> "wordab"
  -> "wordac"
  -> "wordad"
  -> "wordae"
  -> "wordaf"
  -> "wordb0"
  -> "wordb1"
  -> "wordb2"
  -> "wordb3"
  -> "wordb4"
  -> "wordb5"
  -> "wordb6"
  -> "wordb7"
  -> "wordb8"
  -> "wordb9"
  -> "wordba"
  -> "wordbb"
  -> "wordbc"
  -> "wordbd"
  -> "wordbe"
  -> "wordbf"
  -> "wordc0"
  -> "wordc1"
  -> "wordc2"
  -> "wordc3"
  -> "wordc4"
  -> "wordc5"
  -> "wordc6"
  -> "wordc7"
  -> "wordc8"
  -> "wordc9"
  -> "wordca"
  -> "wordcb"
  -> "wordcc"
  -> "wordcd"
  -> "wordce"
  -> "wordcf"
  -> "wordd0"
  -> "wordd1"
  -> "wordd2"
  -> "wordd3"
  -> "wordd4"
  -> "wordd5"
  -> "wordd6"
  -> "wordd7"
  -> "wordd8"
  -> "wordd9"
  -> "wordda"
  -> "worddb"
  -> "worddc"
  -> "worddd"
  -> "wordde"
  -> "worddf"
  -> "worde0"
  -> "worde1"
  -> "worde2"
  -> "worde3"
  -> "worde4"
  -> "worde5"
  -> "worde6"
  -> "worde7"
  -> "worde8"
  -> "worde9"
  -> "wordea"
  -> "wordeb"
  -> "wordec"
  -> "worded"
  -> "wordee"
  -> "wordef"
  -> "wordf0"
  -> "wordf1"
  -> "wordf2"
  -> "wordf3"
  -> "wordf4"
  -> "wordf5"
  -> "wordf6"
  -> "wordf7"
  -> "wordf8"
  -> "wordf9"
  -> "wordfa"
  -> "wordfb"
  -> "wordfc"
  -> "wordfd"
  -> "wordfe"
  -> "wordff"

word3
  -> "word100"
  -> "word101"
  -> "word102"
  -> "word103"
  -> "word104"
  -> "word105"
  -> "word106"
  -> "word107"
  -> "word108"
  -> "word109"
  -> "word10a"
  -> "word10b"
  -> "word10c"
  -> "word10d"
  -> "word10e"
  -> "word10f"
  -> "word110"
  -> "word111"
  -> "word112"
  -> "word113"
  -> "word114"
  -> "word115"
  -> "word116"
  -> "word117"
  -> "word118"
  -> "word119"
  -> "word11a"
  -> "word11b"
  -> "word11c"
  -> "word11d"
  -> "word11e"
  -> "word11f"
  -> "word120"
  -> "word121"
  -> "word122"
  -> "word123"
  -> "word124"
  -> "word125"
  -> "word126"
  -> "word127"
  -> "word128"
  -> "word129"
  -> "word12a"
  -> "word12b"
  -> "word12c"
  -> "word12d"
  -> "word12e"
  -> "word12f"
  -> "word130"
  -> "word131"
  -> "word132"
  -> "word133"
  -> "word134"
  -> "word135"
  -> "word136"
  -> "word137"
  -> "word138"
  -> "word139"
  -> "word13a"
  -> "word13b"
  -> "word13c"
  -> "word13d"
  -> "word13e"
  -> "word13f"
  -> "word140"
  -> "word141"
  -> "word142"
  -> "word143"
  -> "word144"
  -> "word145"
  -> "word146"
  -> "word147"
  -> "word148"
  -> "word149"
  -> "word14a"
  -> "word14b"
  -> "word14c"
  -> "word14d"
  -> "word14e"
  -> "word14f"
  -> "word150"
  -> "word151"
  -> "word152"
  -> "word153"
  -> "word154"
  -> "word155"
  -> "word156"
  -> "word157"
  -> "word158"
  -> "word159"
  -> "word15a"
  -> "word15b"
  -> "word15c"
  -> "word15d"
  -> "word15e"
  -> "word15f"
  -> "word160"
  -> "word161"
  -> "word162"
  -> "word163"
  -> "word164"
  -> "word165"
  -> "word166"
  -> "word167"
  -> "word168"
  -> "word169"
  -> "word16a"
  -> "word16b"
  -> "word16c"
  -> "word16d"
  -> "word16e"
  -> "word16f"
  -> "word170"
  -> "word171"
  -> "word172"
  -> "word173"
  -> "word174"
  -> "word175"
  -> "word176"
  -> "word177"
  -> "word178"
  -> "word179"
  -> "word17a"
  -> "word17b"
  -> "word17c"
  -> "word17d"
  -> "word17e"
  -> "word17f"