How to use the Graphical Syntax Viewer
It is not necessary to compile all the files unless any
of them have been updated or modified. If they have, then you may compile the java
files - Diagram.java
, Xdiagram.java
,
DecisionDiagram.java
, Connector.java
,
EmptyDiagram.java
, IfConnector.java
,
LoopConnector.java
, LoopDiagram.java
,
NonTerminalDiagram.java
, SequenceDiagram.java
,
SequentialLayout.java
, TerminalDiagram.java
,
VerticalLayout.java
, Regular.java
.
Compile GrammarConverter.java i,e. javac GrammarConverter.java
.
Run it i.e. java GrammarConverter gr.txt Grammar
. Here
Grammar indicates the name of the class to be created which throughout the discussion has been Grammar.java.
Now compile CurryDiagram.java i.e., javac
CurryDiagram.java
. This is the applet class.
This program can be executed in two ways
appletviewer Curry.html
java CurryDiagram