瀏覽代碼

Update compilation instructions.

master
Ian Piumarta 3 年之前
父節點
當前提交
a6c2062fc7
共有 1 個檔案被更改,包括 10 行新增4 行删除
  1. +10
    -4
      ccmeta.leg

+ 10
- 4
ccmeta.leg 查看文件

@ -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…
取消
儲存