Browse Source

Update compilation instructions.

master
Ian Piumarta 3 years ago
parent
commit
a6c2062fc7
1 changed files with 10 additions and 4 deletions
  1. +10
    -4
      ccmeta.leg

+ 10
- 4
ccmeta.leg View File

@ -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>

Loading…
Cancel
Save