c_parser.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:rvmi-rekall 作者: fireeye 项目源码 文件源码
def _struct_definition_possibly_with_fields(self):
        """Detect a struct/enum/union definition.

        e.g.
              struct foobar {
                   int v[100];
              } __attribute__((packed))
        """
        return (
            (_STRUCT | _UNION)("type")
            + pyparsing.Optional(self._identifier())("type_name")
            + _OPEN_CURLY
            + pyparsing.ZeroOrMore(
                self.element
            )("fields")
            + _CLOSE_CURLY

            + self._maybe_attributes()("attributes")
        ).setParseAction(self._process_struct_definition)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号