- Timestamp:
- 11/09/08 16:35:08 (2 months ago)
- Location:
- v6
- Files:
-
- 2 modified
-
mildew/src/AST.pm (modified) (1 diff)
-
smop/m0ld/M0ld/Parser.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
v6/mildew/src/AST.pm
r22932 r22936 55 55 'my '.$id_cond.'_val = '.$id_cond.'."FETCH"();'.$/. 56 56 'my '.$id_cond.'_bool = '.$id_cond.'_val."bool"();'.$/. 57 'if '.$id_cond.'_bool { goto '.$label_then.' ; } else { goto '.$label_else.';};'.$/.57 'if '.$id_cond.'_bool { goto '.$label_then.' } else { goto '.$label_else.' };'.$/. 58 58 $label_then.':'.$/. 59 59 $then.$/. 60 $label_else.': '.$/;60 $label_else.': noop;'.$/; 61 61 } 62 62 -
v6/smop/m0ld/M0ld/Parser.hs
r22640 r22936 36 36 return [LabelDef id] 37 37 38 38 39 stmt = do 39 40 l <- option [] (try label) 40 body <- choice $ map try [ label,call2,call,decl,goto,br]41 body <- choice $ map try [call2,call,decl,goto,br,noop] 41 42 return $ l ++ body 42 43 … … 85 86 defaultValue <- option None $ symbol "=" >> constant 86 87 return [Decl x defaultValue] 88 89 noop = string "noop" >> return [] 87 90 88 91 branch = inBraces $ do
