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是為此項目手寫的。