标题:【下载】cdecl 初学者必备解析C语言声明工具
取消只看楼主
lonmaor
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:郑州
等 级:版主
威 望:75
帖 子:2637
专家分:6423
注 册:2007-11-27
结帖率:100%
 问题点数:0 回复次数:1 
【下载】cdecl 初学者必备解析C语言声明工具
CDECL.zip (13.59 KB)


    Read me first:
        [] means optional; {} means 1 or more; <> means defined elsewhere
        command:
          declare <name> as <english>
          cast <name> into <english>
          explain <gibberish>
        english:
          function [( <name>)] returning <english>
          array [<number>] of <english>
          pointer to <english>
          <type>
        type:
          [{<modifier>}] <C-type>
          {<modifier>} [<C-type>]
          <sue> <name>
        name is a C identifier
        gibberish is a C declaration
        C-type is int, char, double or float
        modifier is short, long or unsigned
        sue is struct, union or enum
examples:  ^Z to Terminate
        explain float (*(*(****(*(*foo())())[5])())())()
        declare signal as function (sig_args) returning pointer to function
        (other_args) returning int


[ 本帖最后由 lonmaor 于 2009-9-16 16:11 编辑 ]
搜索更多相关主题的帖子: cdecl 声明 工具 C语言 
2009-09-16 09:48
lonmaor
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:郑州
等 级:版主
威 望:75
帖 子:2637
专家分:6423
注 册:2007-11-27
得分:0 
Cdecl
-
Translator of English <--> C/C++ declarations

从不知道到知道,到知道自己不知道,成长的道路上脚步深深浅浅
2009-09-16 09:49



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-285863-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.098697 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved