Ed Davis
Joined 31 August 2022
no edit summary
No edit summary |
No edit summary |
||
Line 196:
=={{header|C}}==
<lang C>
#include <stdlib.h>
#include <stdio.h>
Line 204 ⟶ 203:
#include <errno.h>
#include <stdbool.h>
#include <limits.h>
#define NELEMS(arr) (sizeof(arr) / sizeof(arr[0]))
Line 308:
static int kwd_cmp(const void *p1, const void *p2) {
return
}
Line 430:
=={{header|Python}}==
<lang Python>
import sys
Line 454 ⟶ 453:
#*** show error and exit
def error(line, col, msg):
print
exit(1)
Line 582 ⟶ 581:
if tok == Integerk:
print
elif tok == Ident:
print
elif tok == Stringk:
print
else:
print
if tok == EOI:
|