From 6f2c81e4df139a964f9353880fff0e3035d086d9 Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Tue, 7 Apr 2009 22:52:13 +0100 Subject: [PATCH] [doc] ScopeBuilder: better explanation of scope prefixes --- src/ozulis/visitors/scope-builder.doch | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/ozulis/visitors/scope-builder.doch b/src/ozulis/visitors/scope-builder.doch index c465e0e..641ca0f 100644 --- a/src/ozulis/visitors/scope-builder.doch +++ b/src/ozulis/visitors/scope-builder.doch @@ -21,26 +21,33 @@ * * @subsection global_scope Global scope * This scope is the first scope. It has no parents. - * Symbol addresses are prefixed with `@'. + * @code + * addr_prefix = "@"; + * @endcode * * @subsection namespace_scope Namespace scope * This scope is the child of a global scope or a namespace scope. - * Symbol addresses are prefixed with the parent prefix plus `.N' - * plus the name of the namespace. + * @code + * addr_prefix = parent.prefix + ".N" + symbol.name + "."; + * @endcode * * @subsection structure_scope Structure, class and union scope * This scope is the child of a global scope or a namespace scope. - * Symbol addresses are prefixed with the parent prefix plus `.S' - * plus the name of the structure or class or union. + * @code + * addr_prefix = parent.prefix + ".S" + symbol.name + "."; + * @endcode * * @subsection function_scope Function scope * This scope is the child of a global scope or a namespace scope. - * Symbol addresses are prefixed with `@%'. + * @code + * addr_prefix = "%"; + * @endcode * * @subsection block_scope Block scope * This scope is the child of a block or function scope. - * Symbol addresses are prefixed with parent prefix plus `.B' - * plus the number of the scope (ie it's index in it's parent). + * @code + * addr_prefix = parent.prefix + ".B" + parent.index(this) + "."; + * @endcode * * @subsection strings Strings * When the scope builder meet a StringExp, it should create a internal -- 2.11.4.GIT