Deleted Added
sdiff udiff text old ( 7922:7532067f818e ) new ( 8086:bf0335d98250 )
full compact
1# Copyright (c) 2009 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 142 unchanged lines hidden (view full) ---

151 'machine' : 'MACHINE',
152 'in_port' : 'IN_PORT',
153 'out_port' : 'OUT_PORT',
154 'action' : 'ACTION',
155 'transition' : 'TRANS',
156 'structure' : 'STRUCT',
157 'external_type' : 'EXTERN_TYPE',
158 'enumeration' : 'ENUM',
159 'peek' : 'PEEK',
160 'stall_and_wait' : 'STALL_AND_WAIT',
161 'wake_up_dependents' : 'WAKE_UP_DEPENDENTS',
162 'wake_up_all_dependents' : 'WAKE_UP_ALL_DEPENDENTS',
163 'enqueue' : 'ENQUEUE',
164 'copy_head' : 'COPY_HEAD',
165 'check_allocate' : 'CHECK_ALLOCATE',
166 'check_stop_slots' : 'CHECK_STOP_SLOTS',

--- 157 unchanged lines hidden (view full) ---

324 "decl : STRUCT '(' type pairs ')' '{' type_members '}'"
325 p[0] = ast.TypeDeclAST(self, p[3], p[4], p[7])
326
327 def p_decl__enum(self, p):
328 "decl : ENUM '(' type pairs ')' '{' type_enums '}'"
329 p[4]["enumeration"] = "yes"
330 p[0] = ast.EnumDeclAST(self, p[3], p[4], p[7])
331
332 def p_decl__object(self, p):
333 "decl : type ident pairs SEMI"
334 p[0] = ast.ObjDeclAST(self, p[1], p[2], p[3])
335
336 def p_decl__func_decl(self, p):
337 """decl : void ident '(' params ')' pairs SEMI
338 | type ident '(' params ')' pairs SEMI"""
339 p[0] = ast.FuncDeclAST(self, p[1], p[2], p[4], p[6], None)

--- 42 unchanged lines hidden (view full) ---

382 def p_type_enums__empty(self, p):
383 "type_enums : empty"
384 p[0] = []
385
386 def p_type_enum(self, p):
387 "type_enum : ident pairs SEMI"
388 p[0] = ast.TypeFieldEnumAST(self, p[1], p[2])
389
390 # Type
391 def p_types__multiple(self, p):
392 "types : type ',' types"
393 p[0] = [ p[1] ] + p[3]
394
395 def p_types__one(self, p):
396 "types : type"
397 p[0] = [ p[1] ]

--- 347 unchanged lines hidden ---