view tests/agcl/parsifal/t201a.syn @ 23:cac4c76600eb

Update lint ok file for recent change.
author David A. Holland
date Mon, 13 Jun 2022 00:17:10 -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