cdecl plus
1.0.0
CDECL+是用JavaScript编写的在线实用程序,它将C声明变成散文。它主要是为C设计的,但支持一些C ++功能,例如功能预选赛和参考。
void f ( int )
// Declare f as function(int) returning void int ( * )[ 3 ]
// pointer to array[3] of int const x ( int [ * ]) &
// Declare x as &-qualified function(VLA of unspecified size of int) returning const int typedef struct y {} x
// Declare x as type alias for struct y void ( T :: * )() const
// pointer to member of T, with type const-qualified function returning void CDECL+使用PEG.JS语法生成JS解析器,然后由其他JavaScript代码调用,该代码转换为散文。提供了其他诊断,例如句法有效但形成不佳的代码的错误。
除了PEG.JS,没有依赖性。 HTML和CSS是为此项目手写的。