|
|
@ -1,9 +1,15 @@ |
|
|
|
%{ |
|
|
|
# ccmeta.leg -- metalanguage for C |
|
|
|
# |
|
|
|
# Copyright (c) 2016-2021 Ian Piumarta and other contributors (see AUTHORS) |
|
|
|
# All rights reserved (see LICENSE) |
|
|
|
# |
|
|
|
# Last edited: 2021-07-06 16:09:02 by piumarta on DESKTOP-LTPREOB |
|
|
|
|
|
|
|
/* compile: leg -o parse.c parse.leg |
|
|
|
* cc -o parse parse.c |
|
|
|
%{ |
|
|
|
/* compile: leg -o ccmeta.c ccmeta.leg |
|
|
|
* cc -o ccmeta ccmeta.c -lgc -lm |
|
|
|
* |
|
|
|
* run: echo "3+4" | ./parse |
|
|
|
* run: ./ccmeta < ccmeta-test.txt |
|
|
|
*/ |
|
|
|
|
|
|
|
#include <stdarg.h> |
|
|
|