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は、このプロジェクトの手書きです。