Skip to content

Commit

Permalink
Added a component place holder with a prop def.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjstaats committed Sep 14, 2011
1 parent 635ec6d commit 443e26c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DSL/DiversiaScript/trans/desugar.str
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rules // Definitions
desugar: EventDef(name, statements) -> EventDef(name, [], statements)
desugar: VarDefNoInit(name, type) -> VarDef(name, type, Null())
desugar: PropDefNoInit(name, type) -> PropDef(name, type, Null())
desugar: ComponentDef(type, props) -> ComponentDef(<crush> type, type, props)
desugar: ComponentDef(type, props) -> ComponentDef(<crush> type, type, props)
desugar: PluginDef(type, props) -> PluginDef(<crush> type, type, props)

rules // References
Expand Down Expand Up @@ -95,8 +95,11 @@ rules // Structural
<filter(isVarDef)> defs => varDefs;
<filter(isDefaultStateDef)> defs => defaultStateDef;
<filter(isStateDef)> defs => stateDefs;
<filter(isPropDef)> defs => propDefs;
<concat> [<filter(isPropDef)> defs, <map(componentToProp)> componentDefs] => propDefs;
<filter(isEventDef)> defs => eventDefs

componentToProp: ComponentDef(name, type, props) -> PropDef(name, type, Null())


rules // Child object

Expand Down

0 comments on commit 443e26c

Please sign in to comment.