got javadoc DOT images in; updated font names to avoid warnings

This commit is contained in:
Terence Parr 2014-07-02 19:10:36 -07:00
parent 4bc3284412
commit 775aaa6494
10 changed files with 34 additions and 28 deletions

12
bild.py
View File

@ -42,9 +42,15 @@ def clean():
rmdir("doc")
def mkdoc():
mkdirs("doc/Java")
mkdirs("doc/JavaTool")
mkdir("doc/Java")
mkdir("doc/JavaTool")
javadoc(srcdir="runtime/Java/src", trgdir="doc/Java", packages="org.antlr.v4.runtime")
javadoc(srcdir="tool/src", trgdir="doc/JavaTool", packages="org.antlr.v4")
# build stack merge PredictionContext and ATNState images from DOT
# DOT Images are in runtime/Java/src/main/dot/org/antlr/v4/runtime/atn/images/
# Gen into E.g., doc/Java/org/antlr/v4/runtime/atn/images/SingletonMerge_DiffRootSamePar.svg
mkdir("doc/Java/org/antlr/v4/runtime/atn/images")
for f in glob.glob("runtime/Java/src/main/dot/org/antlr/v4/runtime/atn/images/*.dot"):
dot(f, "doc/Java/org/antlr/v4/runtime/atn/images", format="svg")
processargs(globals()) # if you want cmd-line arg processing. Or, just call your target
processargs(globals()) # E.g., "python bild.py all"

View File

@ -1,7 +1,7 @@
digraph "" {
graph[fontname="Courier New";rankdir="LR";pad="0.25"];
node[fontname="Courier New";target="_parent"];
edge[fontname="Courier New"];
graph[fontname="CourierNew";rankdir="LR";pad="0.25"];
node[fontname="CourierNew";target="_parent"];
edge[fontname="CourierNew"];
subgraph clusterA {
color="invis";
{ node[shape="record"];

View File

@ -1,7 +1,7 @@
digraph "" {
graph[fontname="Courier New";rankdir="LR";pad="0.25"];
node[fontname="Courier New";target="_parent"];
edge[fontname="Courier New"];
graph[fontname="CourierNew";rankdir="LR";pad="0.25"];
node[fontname="CourierNew";target="_parent"];
edge[fontname="CourierNew"];
subgraph cluster0 {
color="invis";
{ node[shape="record"];

View File

@ -1,7 +1,7 @@
digraph "" {
graph[fontname="Courier New";rankdir="LR";pad="0.25"];
node[fontname="Courier New";target="_parent"];
edge[fontname="Courier New"];
graph[fontname="CourierNew";rankdir="LR";pad="0.25"];
node[fontname="CourierNew";target="_parent"];
edge[fontname="CourierNew"];
subgraph cluster0 {
color="invis";
{ node[shape="record"];

View File

@ -1,7 +1,7 @@
digraph "" {
graph[fontname="Courier New";rankdir="LR";pad="0.25"];
node[fontname="Courier New";target="_parent"];
edge[fontname="Courier New"];
graph[fontname="CourierNew";rankdir="LR";pad="0.25"];
node[fontname="CourierNew";target="_parent"];
edge[fontname="CourierNew"];
subgraph cluster0 {
color="invis";
{ node[shape="record"];

View File

@ -1,7 +1,7 @@
digraph "" {
graph[fontname="Courier New";rankdir="LR";pad="0.25"];
node[fontname="Courier New";target="_parent"];
edge[fontname="Courier New"];
graph[fontname="CourierNew";rankdir="LR";pad="0.25"];
node[fontname="CourierNew";target="_parent"];
edge[fontname="CourierNew"];
subgraph cluster0 {
color="invis";
{ node[shape="record"];

View File

@ -1,7 +1,7 @@
digraph "" {
graph[fontname="Courier New";rankdir="LR";pad="0.25"];
node[fontname="Courier New";target="_parent"];
edge[fontname="Courier New"];
graph[fontname="CourierNew";rankdir="LR";pad="0.25"];
node[fontname="CourierNew";target="_parent"];
edge[fontname="CourierNew"];
subgraph cluster0 {
color="invis";
{ node[shape="record"];

View File

@ -1,7 +1,7 @@
digraph "" {
graph[fontname="Courier New";rankdir="LR";pad="0.25"];
node[fontname="Courier New";target="_parent"];
edge[fontname="Courier New"];
graph[fontname="CourierNew";rankdir="LR";pad="0.25"];
node[fontname="CourierNew";target="_parent"];
edge[fontname="CourierNew"];
subgraph cluster0 {
color="invis";
{ node[shape="record"];

View File

@ -1,7 +1,7 @@
digraph "" {
graph[fontname="Courier New";rankdir="LR";pad="0.25"];
node[fontname="Courier New";target="_parent"];
edge[fontname="Courier New"];
graph[fontname="CourierNew";rankdir="LR";pad="0.25"];
node[fontname="CourierNew";target="_parent"];
edge[fontname="CourierNew"];
{ node[shape="box"];
RuleStartState[URL="../RuleStartState.html"];
RuleStopState[URL="../RuleStopState.html"];

View File

@ -36,7 +36,7 @@ import java.util.Locale;
import java.util.Map;
public class PostScriptDocument {
public static final String DEFAULT_FONT = "Courier New";
public static final String DEFAULT_FONT = "CourierNew";
public static final Map<String, String> POSTSCRIPT_FONT_NAMES;
static {