9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Any ideas how to clear this error as it seems I dont understand if,do,while and els commands
#!/bin/ksh
set -x
print "This script creates test messages"
print "Please enter test case name"
read testcasename
echo $testcasename
skipfield=Y
while
print "Do you want to skip this field... (4 Replies)
Discussion started by: andrew.p.mcderm
4 Replies
2. UNIX for Dummies Questions & Answers
I have written the following code in cygwin to create directories in windows based on the parameter passed.
echo $1 > fullpath
path1=`awk -F / '{print $1}' $fullpath
path2=`awk -F / '{print $2}' $fullpath
if
then
if
then
if
then
continue
... (4 Replies)
Discussion started by: janardhanamk
4 Replies
3. SuSE
good friends I am new to linux and I have the following
TELNET service problem entering data devo
telnet to a Windows server 2003 server and passes
will not let me since the move to this server by
telnet tells me the characters and thus invalidates me
income, I have a service application... (1 Reply)
Discussion started by: pepetico
1 Replies
4. Shell Programming and Scripting
Hello, I have the following piece of code that tries to retrieve the result of a .sh:
. $HOME/prueba/Scripts/Recogida/recogida_sedra.sh
resultado=$?
echo "el resultado es : $resultado"
if ; then
echo "Se va a preprocesar los archivos"
In the code of recogida.sh I have the... (8 Replies)
Discussion started by: danietepa
8 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I am having problems with using less on
Linux version 2.6.18-92.1.17.el5 (brewbuilder@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)). I am using csh but have the same problems on bash.
If I pipe something to less it works perfectly i.e. cat file | less... (9 Replies)
Discussion started by: z1dane
9 Replies
6. UNIX for Advanced & Expert Users
Hi,
I,ve a Unixware 7.1.3 working correctly for two years ago, since a several weeks I've a problem with the command last . The information that this command return is :
For example :
1.- The user root , time login : 12:15 h, time logoff 12:15 h (the real time is 14:00). Connected time is... (3 Replies)
Discussion started by: By_Jam
3 Replies
7. UNIX for Dummies Questions & Answers
Hi
how can i do this?
1) shell script which writes data and time on to a file if filesystem exceeds 70% of space.
2) make entry to cron table to run a script every 15 mins.
and can anyone expplain or demonstrate the difference between variables used in inside a function and outside a... (3 Replies)
Discussion started by: vivekshankar
3 Replies
8. UNIX for Dummies Questions & Answers
I renamed ld.so.1 on a Sun machine running Solaris 2.6. Now I cannot boot the system and I can use only very few commands in Maintenance Mode.
Can someone help me? (3 Replies)
Discussion started by: ciccio
3 Replies
9. UNIX for Advanced & Expert Users
I'm trying to compile and install both most recent version of 'make' and the
most recent version of 'openssh' on my Sparc20.
I've run into the following problems... and I don't know what they mean. Can
someone please help me resolve these issues?
I'm using the 'make' version that was... (5 Replies)
Discussion started by: xyyz
5 Replies
page_util_peg(n) Parser generator tools page_util_peg(n)
__________________________________________________________________________________________________________________________________________________
NAME
page_util_peg - page PEG transformation utilities
SYNOPSIS
package require page::util::peg ?0.1?
package require snit
::page::util::peg::symbolNodeOf tree node
::page::util::peg::symbolOf tree node
::page::util::peg::updateUndefinedDueRemoval tree
::page::util::peg::flatten treequery tree
::page::util::peg::getWarnings tree
::page::util::peg::printWarnings msg
::page::util::peg::peOf tree eroot
::page::util::peg::printTclExpr pe
_________________________________________________________________
DESCRIPTION
This package provides a few common operations to PEG transformations. They assume a Normalized PE Grammar Tree as input, see the package
page::util::norm::peg, possibly augmented with attributes coming from transformations not in conflict with the base definition.
API
::page::util::peg::symbolNodeOf tree node
Given an arbitrary expression node in the AST tree it determines the node (itself or an ancestor) containing the name of the nonter-
minal symbol the node belongs to, and returns its id. The result is either the root of the tree (for the start expression), or a
definition node.
::page::util::peg::symbolOf tree node
As ::page::util::peg::symbolNodeOf, but returns the symbol name instead of the node.
::page::util::peg::updateUndefinedDueRemoval tree
The removal of nodes in the AST tree can cause symbols to lose one or more users.
A used by B and C,
B is reachable,
C is not,
so A now loses the node in the expression for C calling it,
or rather, not calling it anymore.
This command updates the cross-references and which nonterminals are now undefined.
::page::util::peg::flatten treequery tree
This commands flattens nested sequence and choice operators in the AST tree, re-using the treeql object treequery to run the query
determining which nodes to cut.
::page::util::peg::getWarnings tree
This command looks at the attributes of the AST tree for problems with the grammar and issues warnings. They do not prevent us from
writing the grammar, but still represent problems with it the user should be made aware of.
The result of the command is a dictionary mapping nonterminal names to their associated warnings.
::page::util::peg::printWarnings msg
The argument of the command is a dictionary mapping nonterminal names to their associated warnings, as generated by, for example,
the command ::page::util::peg::getWarnings.
The warnings contained therein are formatted and then printed via the log command page_info. This means that this command can be
used only from within a plugin managed by the package page::pluginmgr.
::page::util::peg::peOf tree eroot
This command converts the parsing expression starting at the node eroot in the AST tree into a nested list. The exact syntax of this
list specified by the package grammar::peg.
::page::util::peg::printTclExpr pe
This command converts the parsing expression contained in the nested list pe into a Tcl string which can be placed into a Tcl
script. See the package grammar::peg for the exact syntax of pe.
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, page, parser generator, parsing expression grammar, text processing, transformation
CATEGORY
Page Parser Generator
COPYRIGHT
Copyright (c) 2007 Andreas Kupries <andreas_kupries@users.sourceforge.net>
page 1.0 page_util_peg(n)