view tests/agcl/parsifal/t201a.syn @ 24:a4899cdfc2d6 default tip

Obfuscate the regexps to strip off the IBM compiler's copyright banners. I don't want bots scanning github to think they're real copyright notices because that could cause real problems.
author David A. Holland
date Mon, 13 Jun 2022 00:40:23 -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