tree-browser.def revision 256281
1131087Smarcel/* Definitions and documentation for the codes used by the Tree Browser. 2131087Smarcel Copyright (C) 2002 Free Software Foundation, Inc. 3131087Smarcel Contributed by Sebastian Pop <s.pop@laposte.net> 4131087Smarcel 5131087SmarcelThis file is part of GCC. 6131087Smarcel 7131087SmarcelGCC is free software; you can redistribute it and/or modify it under 8131087Smarcelthe terms of the GNU General Public License as published by the Free 9131087SmarcelSoftware Foundation; either version 2, or (at your option) any later 10131087Smarcelversion. 11131087Smarcel 12131087SmarcelGCC is distributed in the hope that it will be useful, but WITHOUT ANY 13131087SmarcelWARRANTY; without even the implied warranty of MERCHANTABILITY or 14131087SmarcelFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15131087Smarcelfor more details. 16131087Smarcel 17131087SmarcelYou should have received a copy of the GNU General Public License 18131087Smarcelalong with GCC; see the file COPYING. If not, write to the Free 19131087SmarcelSoftware Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 20131087Smarcel02110-1301, USA. */ 21131087Smarcel 22131087Smarcel/* First field in the following declarations is the code of the command 23131087Smarcel used by the tree browser. 24131087Smarcel Second field is what is parsed in order to recognize a command. 25131087Smarcel Third field is used for printing the help message. */ 26131087Smarcel 27131087Smarcel 28131087Smarcel/* Misc. commands. */ 29131087SmarcelDEFTBCODE (TB_EXIT, "x", "Exits tree-browser.") 30131087SmarcelDEFTBCODE (TB_QUIT, "q", "Exits tree-browser.") 31131087SmarcelDEFTBCODE (TB_HELP, "h", "Prints this help message.") 32131087SmarcelDEFTBCODE (TB_UPDATE_UP, "update", "Update information about parent expressions.") 33131087SmarcelDEFTBCODE (TB_VERBOSE, "verbose", "Sets/unsets verbose mode (default is on).") 34131087Smarcel 35131087Smarcel/* Walking commands. */ 36131087SmarcelDEFTBCODE (TB_FUN, "fun", "Go to the current function declaration.") 37131087SmarcelDEFTBCODE (TB_NEXT, "nx", "Go to the next expression in a BIND_EXPR.") 38131087SmarcelDEFTBCODE (TB_PREV, "pr", "Go to the previous expression in a BIND_EXPR.") 39131087SmarcelDEFTBCODE (TB_UP, "up", "Go to the parent tree node.") 40131087SmarcelDEFTBCODE (TB_LAST, "last", "Go to the last expression in a BIND_EXPR.") 41131087SmarcelDEFTBCODE (TB_FIRST, "first","Go to the first expression in a BIND_EXPR.") 42131087SmarcelDEFTBCODE (TB_HPREV, "hpr", "Go to the previous visited node (history previous).") 43131087Smarcel 44131087Smarcel/* Fields accessors. */ 45131087SmarcelDEFTBCODE (TB_CHILD_0, "arg0", "Child 0.") 46131087SmarcelDEFTBCODE (TB_CHILD_1, "arg1", "Child 1.") 47131087SmarcelDEFTBCODE (TB_CHILD_2, "arg2", "Child 2.") 48131087SmarcelDEFTBCODE (TB_CHILD_3, "arg3", "Child 3.") 49131087SmarcelDEFTBCODE (TB_DECL_SAVED_TREE, "decl_saved_tree", "Body of a function.") 50131087SmarcelDEFTBCODE (TB_TYPE, "type", "Field accessor.") 51131087SmarcelDEFTBCODE (TB_SIZE, "size", "Field accessor.") 52131087SmarcelDEFTBCODE (TB_UNIT_SIZE, "unit_size", "Field accessor.") 53131087SmarcelDEFTBCODE (TB_OFFSET, "offset", "Field accessor.") 54131087SmarcelDEFTBCODE (TB_BIT_OFFSET, "bit_offset", "Field accessor.") 55131087SmarcelDEFTBCODE (TB_CONTEXT, "context", "Field accessor.") 56131087SmarcelDEFTBCODE (TB_ATTRIBUTES, "attributes", "Field accessor.") 57131087SmarcelDEFTBCODE (TB_ABSTRACT_ORIGIN, "abstract_origin", "Field accessor.") 58131087SmarcelDEFTBCODE (TB_ARGUMENTS, "arguments", "Field accessor.") 59131087SmarcelDEFTBCODE (TB_RESULT, "result", "Field accessor.") 60131087SmarcelDEFTBCODE (TB_INITIAL, "initial", "Field accessor.") 61131087SmarcelDEFTBCODE (TB_ARG_TYPE, "arg-type", "Field accessor.") 62131087SmarcelDEFTBCODE (TB_ARG_TYPE_AS_WRITTEN, "arg-type-as-written", "Field accessor.") 63131087SmarcelDEFTBCODE (TB_CHAIN, "chain", "Field accessor.") 64131087SmarcelDEFTBCODE (TB_VALUES, "values", "Field accessor.") 65131087SmarcelDEFTBCODE (TB_DOMAIN, "domain", "Field accessor.") 66131087SmarcelDEFTBCODE (TB_METHOD_BASE_TYPE, "method_basetype", "Field accessor.") 67131087SmarcelDEFTBCODE (TB_FIELDS, "fields", "Field accessor.") 68131087SmarcelDEFTBCODE (TB_ARG_TYPES, "arg-types", "Field accessor.") 69131087SmarcelDEFTBCODE (TB_BASETYPE, "basetype", "Field accessor.") 70131087SmarcelDEFTBCODE (TB_POINTER_TO_THIS, "pointer_to_this", "Field accessor.") 71131087SmarcelDEFTBCODE (TB_REFERENCE_TO_THIS,"reference_to_this", "Field accessor.") 72131087SmarcelDEFTBCODE (TB_VARS, "vars", "Field accessor.") 73131087SmarcelDEFTBCODE (TB_SUPERCONTEXT, "supercontext", "Field accessor.") 74131087SmarcelDEFTBCODE (TB_BODY, "body", "Field accessor.") 75131087SmarcelDEFTBCODE (TB_SUBBLOCKS, "subblocks", "Field accessor.") 76131087SmarcelDEFTBCODE (TB_BLOCK, "block", "Field accessor.") 77131087SmarcelDEFTBCODE (TB_REAL, "real", "Field accessor.") 78131087SmarcelDEFTBCODE (TB_IMAG, "imag", "Field accessor.") 79131087SmarcelDEFTBCODE (TB_PURPOSE, "purpose", "Field accessor.") 80131087SmarcelDEFTBCODE (TB_VALUE, "value", "Field accessor.") 81131087SmarcelDEFTBCODE (TB_ELT, "elt", "Field accessor.") 82131087SmarcelDEFTBCODE (TB_MIN, "min", "Field accessor.") 83131087SmarcelDEFTBCODE (TB_MAX, "max", "Field accessor.") 84131087Smarcel 85131087Smarcel/* Searching commands. */ 86131087SmarcelDEFTBCODE (TB_SEARCH_CODE, "sc", "Search a node having a TREE_CODE given as a parameter.") 87131087SmarcelDEFTBCODE (TB_SEARCH_NAME, "sn", "Search an identifier having a name given as a parameter.") 88131087Smarcel 89131087Smarcel/* Printing commands. */ 90131087SmarcelDEFTBCODE (TB_PRETTY_PRINT, "pp", "Pretty print current node.") 91131087SmarcelDEFTBCODE (TB_PRINT, "p", "Prints the current node.") 92131087Smarcel 93131087Smarcel 94131087Smarcel/* 95131087SmarcelLocal variables: 96131087Smarcelmode:c 97131087SmarcelEnd: 98131087Smarcel*/ 99131087Smarcel