소스 검색

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

불러오는 중...
취소
저장