Mercurial > ~dholland > hg > ag > index.cgi
view tests/agcl/parsifal/t201a.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
letter = 'a-z' + 'A-Z' digit = '0-9' eof = 0 universe = ~eof nonprintable = 1..8 printable = (universe - nonprintable) - (letter - 'p-q') name -> letter =1; -> name, letter + digit =2; hex digit, text -> digit -> 'a-f' -> 'A-F' hex number -> "0x", hex digit =1; -> hex number , hex digit =4; number -> digit -> number, digit token -> name -> number -> hex number -> '/', printable -> '|', nonprintable -> '!', universe grammar -> token, eof