Mercurial > ~dholland > hg > ag > index.cgi
view tests/agcl/parsifal/xml1.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
// [1] document $ -> prolog, element, Misc?... // [2] Char = 0x9 + 0xA + 0x20..0xd7ff + 0xe000..0xfffd + 0x0000-0x10ffff // [3] S -> 0x20 + 0x9 + 0xd + 0xa... // [4] NameChar = Letter + Digit + '.' + '-' + ':' + CombiningChar + Extender // [5] Name -> Letter + '_' + ':', NameChar?... // [6] Names -> Name, [S, Name]... // [7] Nmtoken -> NameChar... // [8] Nmtokens -> Nmtoken, [S, Nmtoken]... // [9] EntityValue -> '"', [~(eof + '%' + '&' + '"') | PEReference | Reference]..., '"' -> '\'', [~(eof + '%' + '&' + '\'') | PEReference | Reference]..., '\'' // [10] AttValue -> '"', [~(eof + '%' + '&' + '"') | Reference]..., '"' -> '\'', [~(eof + '%' + '&' + '\'') | Reference]..., '\'' // [11] SystemLiteral -> '"', ~(eof + '"')?..., '"' -> '\'', ~(eof + '\'')?..., '\'' // [12] PubidLiteral -> '"', PubidChar?..., '"' -> '\'', PubidChar?..., '\'' // [13] PubidChar = 0x20 + 0xd + 0xa + 'a-z' + 'A-Z' + '0-9' + '-' + '\'' + '(' + ')' + '+' + ',' + '.' + '/' + ':' + '?' + ';' + '!' + '*' + '#' + '@' + '$' + '_' + '%' // [14] CharData -> ~(eof + '<' + '&')?... // Note that use of keyword "]]>" will take care of CDATA problem // [15] Comment -> "<!--", Char?..., "--", '>' // [16] PI -> "<?", PITarget, [S, char?...], "?>" // [17] PITarget -> Name // Name lookup mechanism should reject "xml" // [18] CDSect -> CDStart, CData, CDEnd // [19] CDStart -> "<![CDATA[" // [20] CData -> Char?... // Keyword recognition logic overrides character recognition // [21] -> "]]>" // [22] prolog -> XMLDecl?, Misc?..., [doctypedecl, Misc?...] // [23] XMLDecl -> "<?xml", VersionInfo, EncodingDecl?, SDDecl?, S?, "?>" // [24] VersionInfo -> S, "version", Eq, {'\'', VersionNum, '\'' | '"', VersionNum, '"'} // [25] Eq -> S?, '=', S? // [26] VersionNum -> 'a-z' + 'A-Z' + '0-9' + '_' + '.' + ':' + '-'... // [27] Misc -> Comment | PI | S // [28] doctypedecl -> "<!DOCTYPE", S, Name, [S, ExternalID], S?, [ '[', [markupdecl | PEReference | S]..., ']', S?], '>' // [29] markupdecl -> elementdecl -> AttlistDecl -> EntityDecl -> NotationDecl -> PI -> Comment