Augmented Syntax Diagram software
last update 2015 Mar 30
You are free to download and use the tools and examples at
with appropriate acknowledgment of their origin, and for those
under the Apache
license, in compliance with the terms of that
The tools and
are provided with no warranty expressed or implied.
This site now
the latest versions of
- ASDEditor (1.10a) - a
graphical editor for ASD grammars. To run it in
Microsoft Windows, download the asddigraphs.jar executable jar
file (see below) and double-click on that file.
- ASDParser (1.08) - a
left-corner, bottom-up parser that uses ASD grammars
- ASDDecider (1.01) - a
modification of ASDParser to permit ASD grammar networks to be
decision networks, and to search them with unordered sets of decision
parameter value tokens, instead of the ordered lists of lexical
which make up the phrases that ASDParser parses.
as the utility programs
- ASDCheck (1.01) -
an ASD grammar for well-formedness and also counts words and
types, nodes and edges in the grammar
- ASDCount(1.01) -
words and phrase types, nodes, and total lines of text in an ASD
allows testing of ASD grammars used as decision networks with
ASDDecider; it is a modification of ASDTester.
- ASDParseTest (1.02) -
allows testing of ASD grammars and parsing; has a command-line
- ASDTester (1.06) -
testing of ASD grammars and parsing, including stepwise parsing
display of phrase structure at each step; has a graphical user
- DefinedUsed (1.02) -
cross references ASD grammar files and the phrase types defined
used in them
- MergeGrammars (1.01) -
merges ASD grammars from separate files into a single file
ASDEditor,ASDParser, ASDDecider, ASDCheck, and MergeGrammars are in each of
ASDTester, ASDDeciderTester, and DefinedUsed are in the files asdx.jar,
. ASDCount and ASDParseTest are classes
defined in the Java default package; but ASDParseTest uses classes in
To run the software you will need the Java Run-time
(JRE), which can be downloaded from Oracle's
site . If you want to develop additional
in Java that use the ASDParser, you will of course need the full
environment (Software Development Kit, or SDK), which can be
from the same site. You may also want to explore Oracle's
Java site .
Downloadable files containing
and utilities other than examples:
link to main page
- asddigraphs.jar - a
file that contains the latest versions of the ASDEditor,
and the ASDDecider,
as well as utility programs ASDCheck and MergeGrammars,
in Java SE 6.
specifically, it contains classes belonging to two packages: asd
See the release notes and javadoc
documentation for details of their use.. The
current version of asddigraphs.jar is an executable jar
file which, when run (for instance by double-clicking it in
Windows), runs ASDEditor.
- asddigraphs.zip - a
the asddigraphs.jar file
version of the asddigraphs.jar file suitable for
- asdx.jar - a Java Archive file that
code for the latest versions of the utility programs ASDTester
whose source code is available via links below.
- asdx.zip - a zip file containing the
- asdx.tar.gz - a compressed version
file suitable for downloading to Unix systems.
- ASDTester.java - the
code for a program to test ASD grammars with the
program is a major improvement over ASDParseTest (see
It runs in its own window and sends its output to a scrollable
that window, rather than to System.out. The program is
the package asdx, which is in each of the downloadable binary
asdx.zip, and asdx.tar.gz .
ASDTester can be run with one of the following commands:
From an MS-Windows command window: java -cp
From a Unix command window: java -cp
Alternatively, if you add the asddigraphs.jar and asdx.jar
files to your system's CLASSPATH, then you can simply use
See the release notes for more
about the latest version..
code for a tool for indexing and cross-referencing a collection
grammar files, as specified in a "build" list of the kind that
by the MergeGrammars utility (which is in the asd
in archive asddigraphs.jar above). The compiled
utility is in the asdx package (which is in the
above.) It produces an index that relates phrase types to
in which they are defined and the files in which they are
lists all undefined phrase types and unused phrase types in the
of grammar files. Finally, it cross references the grammar
themselves according to which other grammar files they depend on
they support. It can be used as follows, where buildListFileName
is the name of the file that contains the "build" list of
and outputFileName is the name for a file to which DefinedUsed
is to write its output.
From an MS-Windows command window:
java -cp asddigraphs.jar;asdx.jar;.
< buildListFileName > outputFileNameFrom a
java -cp asddigraphs.jar:asdx.jar:.
< buildListFileName > outputFileName
add the asddigraphs.jar and asdx.jar files to
CLASSPATH, then you can simply use
java asdx/DefinedUsed < buildListFileName
class file ASDCount.class
tool for counting words, instances, and lines in an ASD grammar
file. Usage: java
ASDCount < grammarFileName
- ASDParseTest - a
of a program to test grammars with instances of ASDParser.