项目作者: alapha23

项目描述 :
GCC plugin for extraction of abstract syntax tree(Ast) from C code
高级语言: C
项目地址: git://github.com/alapha23/Ast-Extracter_gcc.git
创建时间: 2018-01-12T12:34:55Z
项目社区:https://github.com/alapha23/Ast-Extracter_gcc

开源协议:

下载


Abstract Syntax Tree Extracter for GCC

Overview

Only C programs have been tested.

Features later than c99 is not tested.

Make sure dot and atril is installed on your OS.

Usage

  1. $bash gen_ast.sh <dir/filename> <scope name>

Imgur

Tested GCC Version

gcc (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2)
gcc (Gentoo 4.9.3 p1.2, pie-0.6.3) 4.9.3

LICENSE

  1. /// 2018/01/12 Gao Zhiyuan created
  2. ///
  3. /// Copyright (c) Computer Systems and Platforms Laboratory, SNU
  4. /// All rights reserved.
  5. ///
  6. /// Redistribution and use in source and binary forms, with or without modifi-
  7. /// cation, are permitted provided that the following conditions are met:
  8. ///
  9. /// - Redistributions of source code must retain the above copyright notice,
  10. /// this list of conditions and the following disclaimer.
  11. /// - Redistributions in binary form must reproduce the above copyright notice,
  12. /// this list of conditions and the following disclaimer in the documentation
  13. /// and/or other materials provided with the distribution.
  14. ///
  15. /// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  16. /// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  17. /// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  18. /// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
  19. /// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSE-
  20. /// QUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  21. /// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  22. /// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  23. /// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  24. /// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  25. /// DAMAGE.