Menu

Skip to content
  • 首页
  • 关于/About

逸飞的技术日志

文王拘而演周易,仲尼厄而做春秋

m4 tool

Posted on 2017年5月30日2020年9月4日 by 逸飞

目录

    • comman line invoking
    • builtins
  • for comments

m4 macro language http://mbreen.com/m4.html

comman line invoking

m4 -D

builtins

define(, )
undefine()
ifdef(, , )
ifelse(, , , )
eval()
len()
include()
syscmd()
`’are quotes

for comments

M4 rules
it reads in the macro’s arguments (if any)
it determines the expansion of the macro and inserts this expansion at the beginning of its input
m4 continues scanning the input, starting with the expansion

example:
define(definenum',define(num',99′)’)
num # -> num
definenum num # -> define(num',99′) num -> 99

Unless a nested macro is quoted, it is expanded immediately:

define(definenum', define(num’, `99′))
num # -> 99
definenum # ->

及时获取更新,请关注公众号“爬虫技术学习(spider-learn)”

公众号“爬虫技术学习(spider-learn)”

About 逸飞

后端工程师
  • 命令行技巧

Post navigation

← Python doctest library
电商在中国 →

发表评论 取消回复

邮箱地址不会被公开。 必填项已用*标注

分类目录

  • digest (1)
  • manage (3)
  • product-research (1)
  • 创业 (20)
    • arch (1)
    • 公司文化 (2)
  • 未分类 (7)
  • 计算机 (342)
    • algorithm (20)
    • Android (20)
    • backend (3)
      • mq (2)
    • Bitcoin (1)
    • C 语言 (8)
    • interview (1)
    • IoT (1)
    • java (3)
    • Linux (2)
    • lua (4)
    • Python (58)
    • scm (4)
    • Tricks (6)
    • vim (6)
    • Web 后端 (17)
      • Django (14)
      • flask (1)
      • web-server (1)
    • 前端 (35)
      • browser-extension (9)
      • CSS (4)
      • javascript (11)
      • react (6)
      • vue (2)
    • 命令行技巧 (24)
    • 搜索 (26)
      • crawler (11)
        • browser-render (1)
      • elasticsearch (1)
      • parse (2)
      • render (9)
    • 数据库 (26)
      • redis (5)
      • sql (18)
    • 机器学习 (2)
    • 架构 (36)
      • cases (1)
      • dag (1)
      • Docker (6)
      • k8s (7)
      • process-management (2)
      • 数据管道 (2)
      • 服务端工具 (1)
      • 监控 (5)
        • influxdb (1)
    • 第三方库 (3)
    • 编译原理 (11)
      • go (7)
    • 网络 (13)
      • HTTP (6)
    • 计算机图形学 (1)
    • 逆向工程 (3)
  • 读书笔记 (18)
  • 金融 (6)
    • 股票 (6)

文章归档

  • 2021年1月 (1)
  • 2020年10月 (2)
  • 2020年9月 (6)
  • 2020年8月 (1)
  • 2020年7月 (12)
  • 2020年5月 (3)
  • 2020年4月 (1)
  • 2020年1月 (4)
  • 2019年12月 (3)
  • 2019年11月 (3)
  • 2019年10月 (14)
  • 2019年9月 (3)
  • 2019年8月 (3)
  • 2019年7月 (3)
  • 2019年6月 (23)
  • 2019年5月 (1)
  • 2019年3月 (2)
  • 2019年2月 (2)
  • 2019年1月 (2)
  • 2018年12月 (1)
  • 2018年11月 (6)
  • 2018年10月 (9)
  • 2018年9月 (7)
  • 2018年8月 (4)
  • 2018年7月 (23)
  • 2018年6月 (31)
  • 2018年5月 (7)
  • 2018年4月 (32)
  • 2018年3月 (3)
  • 2018年2月 (1)
  • 2018年1月 (6)
  • 2017年12月 (5)
  • 2017年11月 (20)
  • 2017年9月 (4)
  • 2017年8月 (12)
  • 2017年7月 (19)
  • 2017年6月 (39)
  • 2017年5月 (78)
  • 2016年12月 (1)
  • 2015年4月 (1)

近期文章

  • Playwright: 比 Puppeteer 更好用的浏览器自动化工具
  • 放弃 Next.js, 拥抱 react-router
  • 编写一个爬虫的思路,当遇到反爬时如何处理
  • Nextjs 中遇到的一些坑
  • React Hooks

功能

  • 登录
  • 项目feed
  • 评论feed
  • WordPress.org
Powered by GovPress, the WordPress theme for government.