ruby: allow function definition in slicc structs
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 15 Oct 2012 22:27:16 +0000 (17:27 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 15 Oct 2012 22:27:16 +0000 (17:27 -0500)
commit3e607f146f4c8acac6b42e61a0e6295f52f408a4
treee0274a4eab977e9662a9dc22126f726518d8213f
parentc7b0901b97a86eb2d61e4ddd96a73a9d777a57c1
ruby: allow function definition in slicc structs
This patch adds support for function definitions to appear in slicc structs.
This is required for supporting functional accesses for different types of
messages. Subsequent patches will use this to development.
13 files changed:
src/mem/protocol/RubySlicc_Types.sm
src/mem/slicc/ast/EnumDeclAST.py
src/mem/slicc/ast/FuncDeclAST.py
src/mem/slicc/ast/InPortDeclAST.py
src/mem/slicc/ast/MachineAST.py
src/mem/slicc/ast/StateDeclAST.py
src/mem/slicc/ast/TypeFieldEnumAST.py
src/mem/slicc/ast/TypeFieldMemberAST.py
src/mem/slicc/ast/TypeFieldMethodAST.py
src/mem/slicc/ast/TypeFieldStateAST.py
src/mem/slicc/parser.py
src/mem/slicc/symbols/Func.py
src/mem/slicc/symbols/Type.py