YAPPS(1) General Commands Manual YAPPS(1)NAME
yapps - create a Python module from a grammar file
SYNOPSIS
yapps [ --dump ] [ --use-devel-grammar ] [ -fcontext-insensitive-scanner ] [ -p pid ] [ -f ] input.g [ output.py ] name
DESCRIPTION --dump Dump out grammar information
--use-devel-grammar Use the devel grammar parser from yapps_grammar.py instead of the stable grammar from grammar.py
-fcontext-insensitive-scanner Scan all tokens (see docs)
yapps generates a Python program which will parse a given grammar.
OPTIONS --dump Dump the grammar information to stdout.
--use-devel-grammar
Use the grammar file in ./yapps_grammar.py instead of yapps/grammar.py.
This option is useful for testing new grammar parsers. (Yes, yapps' parser is itself written with yapps...)
-fcontext-insensitive-scanner
Set the option to use the non-context-sensitive scanner.
CAVEATS
yapps implements a recursive-descent scanner.
HISTORY
Written by Amit J. Patel <amitp@cs.stanford.edu>.
This version was enhanced by Matthias Urlichs <smurf@debian.org>. It is not downwards-compatible with the original yapps2 (yet) and uses a
different runtime library.
See the change log for details.
YAPPS(1)
Check Out this Related Man Page
Gedcom::Grammar(3pm) User Contributed Perl Documentation Gedcom::Grammar(3pm)NAME
Gedcom::Grammar - a module to manipulate Gedcom grammars
Version 1.16 - 24th April 2009
SYNOPSIS
use Gedcom::Grammar;
my $st = $grammar->structure("GEDCOM");
my @sgr = $grammar->item("DATE");
my @items = $grammar->valid_items;
my $min = $grammar->min;
my $max = $grammar->max;
my @items = $grammar->items;
DESCRIPTION
A selection of subroutines to handle the grammar of a gedcom file.
Derived from Gedcom::Item.
HASH MEMBERS
Some of the more important hash members are:
$grammar->{top}
The top of the grammar tree.
$grammar->{top}{structures}
A reference to a hash mapping the names of all structures to the grammar objects.
METHODS
structures
my $st = $grammar->structure("GEDCOM");
Return the grammar item of the specified structure, if it exists, or undef.
item
my @sgr = $grammar->item("DATE");
Return a list of the possible grammar items of the specified sub-item, if it exists.
min
my $min = $grammar->min;
Return the minimum permissible number of $grammar items
max
my $max = $grammar->max;
Return the maximum permissible number of $grammar items
items
my @items = $grammar->items;
Return a list of tags of the grammar's sub-items
valid_items
my @items = $grammar->valid_items;
Return a hash detailing all the valid sub-items of the grammar item. The key is the tag of the sub-item and the value is an array of
hashes with three members:
grammar => the sub-item grammar
min => the minimum permissible number of these sub-items
max => the maximum permissible number of these sub-items
perl v5.14.2 2012-04-12 Gedcom::Grammar(3pm)
Hi, before my question let me excuse myself for the bad grammar and possible confusion (i am used to write in spanish)*
I need some help, i'm making a query:
SELECT empnmbr as empl, origin as addr, old_fields_value as prev_sta, new_fields_value as new_sta \
FROM webapplog$bdate,... (3 Replies)
Just started to create my own small content scanner that searches all the visible files on my server, but now I got stuck. It should be used to scan the files for phrases like in the following example.
What I tried is the following code:
#!/bin/bash
find /home/userid*/public_html/ -size... (18 Replies)
Experience level : New to programming in Linux. Forgive my noobiness in this context with regards to programming, language or grammar.
Some Background info : I have seen a lot of programs which I use (Modo and Maya especially) which can use a command line to run the different parts of the... (2 Replies)
I was wondering if Python's execution stack does not grow if we make recursive call of a function i.e. if we implement a fibonacci () and factorial () functions and made recursive call of them in a conditional statement the execution stack will not grow?
I wish someone answer this question with... (1 Reply)
hi
sorry for grammar mistakes but i am writting these fro tablet and am not realy used to ot so well yet....
i am in the middle of doing work here and hope some1 ca answear my question asap please :-)
How to calculate the amount of internal fragmentation using script.
cd directory ...... (6 Replies)
Hi,
I am trying to check if two input files exist before the rest of the scripts is run. Following is the code that I have but it gives me syntax error.
if
then
echo "File not found"
else
echo "File found"
fi (3 Replies)
Hey Guys and Gals, Im a complete Noob to Unix. But recently have started working on a unix system for my PET/CT scanner. My scanner comes with a MOD drive for backup. I would like to back up to USB (its alot cheaper). But the only way to do so is by manually enterin the unix commands. Id like to... (13 Replies)
I am trying to install a Canon LiDE 220 scanner on Debian 8.5 64 bit, running on a
Dell Latitude E5400
As far as Ubuntu is concerned, it can be installed. I am having no luck with Debian 8.5
This is what I have
root@server1:/etc# sane-find-scanner
# sane-find-scanner will now... (1 Reply)