-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
C.parse seems to keep state somewhere, which breaks the ability to parse more than once;
1.9.3p286 :001 > require 'cast'
=> true
1.9.3p286 :002 > C.parse("typedef int fun;")
=> TranslationUnit
entities:
- Declaration
storage: typedef
type: Int
declarators:
- Declarator
name: "fun"
1.9.3p286 :003 > C.parse("typedef int fun;")
C::ParseError: 1:0: invalid type specifier combination: int fun
from c.y:593:in `parse'
from cast-0.2.1/lib/cast/parse.rb:57:in `parse'
from cast-0.2.1/lib/cast/parse.rb:51:in `parse'
from (irb):3
from ruby-1.9.3-p286/bin/irb:16:in `<main>'Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels