09-02-2010
Edit it in any way you choose - vi will work, yes.
The name of the file is irrelevant - it's just to give you an idea about "." and "source".
dan.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
How does the PATH and MANPATH environment variable get set?
I want to add "/opt/SUNWspro/bin" to the search path for all the users. Where can I access this variable.
I know in my home directory, depend on which shell I use, there are files such as .profile and .cshrc which I can edit to... (3 Replies)
Discussion started by: vtran4270
3 Replies
2. UNIX for Advanced & Expert Users
Installed a program, need to set the system up so that when the executable is entered, it finds the path to the executable. In Windows, set under system properties, advanced, environmental variables. How do I do this with Unix? Specifically using Solaris 9. I have tried:
env... (3 Replies)
Discussion started by: kohoutek
3 Replies
3. UNIX for Advanced & Expert Users
hi,
I have one environment variable like path in my system.But in my program i need to change that path .suppose it has a value "config" now i need to chage it as "config1" or something else.i need to use that variable for complete project.It means at first it will use the old path but after... (4 Replies)
Discussion started by: sada@123
4 Replies
4. Shell Programming and Scripting
hi all
i have joined new to the group.
i have set an variable in my bashrc file.
.bashrc
PROGHOME=/home/braf/braf/prog
export PROGHOME
but while using it in my shell script its path is not taken and i had to explicitly give the export command to set the path.
in my script... (8 Replies)
Discussion started by: krithika
8 Replies
5. Linux
Hi,
I am quite new to Linux. And I have doubt how to set new environment variable with value to a C executable.
Let say I have a environment variable $Hack ;
I would like to load a value for this variable; so that when the C executable is executed, the $Hack would set the variable value.
... (4 Replies)
Discussion started by: ahjiefreak
4 Replies
6. Solaris
I am working with solaris 9 sunBlade150 Box.
I Installed a program, need to set the environment variable so that when the executable is entered,it finds the path to the executable.
The documentation for the software says: Set the appropriate environment variable:
Connect to server failed;... (8 Replies)
Discussion started by: smartgupta
8 Replies
7. UNIX for Dummies Questions & Answers
hi,
i am new to perl:
os : Linux
i wrote simple perl script to select from table i am getting this error and how to set ORACLE_HOME environment variable :
script:
#!usr/bin/perl
use DBI;
use Mail::Sendmail;
#use Date::Calc;
use MIME::QuotedPrint;
use HTML::Entities;
use POSIX... (2 Replies)
Discussion started by: prakash.gr
2 Replies
8. Shell Programming and Scripting
I've searched Google and now this forum. Best guess is my search fu is not good (and it probably isn't). The Google search did bring me here.
Background
I have a number of Korn Shell scripts who all use one of 3 values for an environment variable used in the backup system.
On occasion one or... (8 Replies)
Discussion started by: WolfBrother
8 Replies
9. Shell Programming and Scripting
Hi,
I an having some environment variables exported and the variable name is present in the file. But its not resolving with following commands. Can someone throw some light.
db $ grep -v "^#" TD_FWK_NUCLEUS.dbc | grep -v "^$" | xargs -i echo {}
wb_bin: ${TD_FWK_NUCLEUS_DBC_WB_BIN_TAG}
I... (3 Replies)
Discussion started by: Mohammed Rafi
3 Replies
10. Solaris
Hi all,
In Solaris 10, is there a way to search for the sessions that have a certain environment variable set? (8 Replies)
Discussion started by: ejianu
8 Replies
LEARN ABOUT MOJAVE
page_util_norm_peg
page_util_norm_peg(n) Parser generator tools page_util_norm_peg(n)
__________________________________________________________________________________________________________________________________________________
NAME
page_util_norm_peg - page AST normalization, PEG
SYNOPSIS
package require page::util::norm_peg ?0.1?
package require snit
::page::util::norm::peg tree
_________________________________________________________________
DESCRIPTION
This package provides a single utility command which takes an AST for a parsing expression grammar and normalizes it in various ways. The
result is called a Normalized PE Grammar Tree.
Note that this package can only be used from within a plugin managed by the package page::pluginmgr.
API
::page::util::norm::peg tree
This command assumes the tree object contains for a parsing expression grammar. It normalizes this tree in place. The result is
called a Normalized PE Grammar Tree.
The following operations are performd
[1] The data for all terminals is stored in their grandparental nodes. The terminal nodes and their parents are removed. Type
information is dropped.
[2] All nodes which have exactly one child are irrelevant and are removed, with the exception of the root node. The immediate
child of the root is irrelevant as well, and removed as well.
[3] The name of the grammar is moved from the tree node it is stored in to an attribute of the root node, and the tree node
removed.
The node keeping the start expression separate is removed as irrelevant and the root node of the start expression tagged with
a marker attribute, and its handle saved in an attribute of the root node for quick access.
[4] Nonterminal hint information is moved from nodes into attributes, and the now irrelevant nodes are deleted.
Note: This transformation is dependent on the removal of all nodes with exactly one child, as it removes the all 'Attribute'
nodes already. Otherwise this transformation would have to put the information into the grandparental node.
The default mode given to the nonterminals is value.
Like with the global metadata definition specific information is moved out out of nodes into attributes, the now irrelevant
nodes are deleted, and the root nodes of all definitions are tagged with marker attributes. This provides us with a mapping
from nonterminal names to their defining nodes as well, which is saved in an attribute of the root node for quick reference.
At last the range in the input covered by a definition is computed. The left extent comes from the terminal for the nontermi-
nal symbol it defines. The right extent comes from the rightmost child under the definition. While this not an expression
tree yet the location data is sound already.
[5] The remaining nodes under all definitions are transformed into proper expression trees. First character ranges, followed by
unary operations, characters, and nonterminals. At last the tree is flattened by the removal of superfluous inner nodes.
The order matters, to shed as much nodes as possible early, and to avoid unnecessary work later.
BUGS, IDEAS, FEEDBACK
This document, will undoubtedly contain bugs and other problems. Please report such in the category page of the Tcllib SF Trackers
[http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have.
KEYWORDS
PEG, graph walking, normalization, page, parser generator, text processing, tree walking
CATEGORY
Page Parser Generator
COPYRIGHT
Copyright (c) 2007 Andreas Kupries <andreas_kupries@users.sourceforge.net>
page 1.0 page_util_norm_peg(n)