ソースを参照

Allow pointer types in typedefs

pull/1/head
Max Brunsfeld 11年前
コミット
ccdbf809ad
2個のファイルの変更10行の追加2行の削除
  1. +1
    -1
      grammar.coffee
  2. +9
    -1
      grammar_test/declarations.txt

+ 1
- 1
grammar.coffee ファイルの表示

@ -45,7 +45,7 @@ module.exports = grammar
typedef: -> seq(
keyword("typedef"),
@type,
@identifier,
@type_expression,
";")
var_declaration: -> seq(

+ 9
- 1
grammar_test/declarations.txt ファイルの表示

@ -110,9 +110,17 @@ Typedefs
typedef int my_int;
typedef struct{
int x;
} *a;
---
(typedef (identifier) (identifier))
(program
(typedef (identifier) (identifier))
(typedef (struct_type
(field (identifier) (identifier)))
(pointer_type (identifier))))
============================================
Function declarations

読み込み中…
キャンセル
保存