Objective-C解析器:获取Objective-C头文件的JSON表示形式

时间:2021-01-31 03:12:51
【文件属性】:
文件名称:Objective-C解析器:获取Objective-C头文件的JSON表示形式
文件大小:130KB
文件格式:ZIP
更新时间:2021-01-31 03:12:51
javascript parser babel objective-c code-generation 客观分析器 获取Objective-C头文件并将其转换为等效的javascript调用 安装 $ npm install objective-c-parser 用法 const fs = require ( "fs" ) ; const objectiveCParser = require ( "objective-c-parser" ) ; const content = fs . readFileSync ( "/path/to/objective-c/Ponies.h" , "utf8" ) ; const output = objectiveCParser ( content ) ; fs . writeFileSync ( "/path/to/project/ponies.json" , JSON . stringify ( output ) ) ; 例 # import < Foundation> @protocol Ponies, Foo; @interface BasicName : NSObject // Another comment
【文件预览】:
objective-c-parser-master
----.bettercodehub.yml(148B)
----.gitattributes(29B)
----exampleFiles()
--------withImplementation.h(46KB)
--------withMacros.h(6KB)
--------empty.h(70B)
--------advanced.h(23KB)
--------noClassName.h(9KB)
--------basic.h(995B)
--------noComments.h(920B)
----yarn.lock(145KB)
----license(1KB)
----.travis.yml(122B)
----__tests__()
--------index.js(7KB)
----renovate.json(63B)
----.editorconfig(175B)
----.gitignore(42B)
----index.js(4KB)
----readme.md(2KB)
----package-lock.json(233KB)
----Changelog.md(53B)
----package.json(1KB)

网友评论