Source code: jpicedt/format/eepic/parser/EepicParser.java
1 /*
2 EepicParser.java - July 24, 2002 - jPicEdt 1.3.2, a picture editor for LaTeX.
3 Copyright (C) 1999-2002 Sylvain Reynal
4
5 Département de Physique
6 Ecole Nationale Supérieure de l'Electronique et de ses Applications (ENSEA)
7 6, avenue du Ponceau
8 F-95014 CERGY CEDEX
9
10 Tel : +33 130 736 245
11 Fax : +33 130 736 667
12 e-mail : reynal@ensea.fr
13 jPicEdt web page : http://www.jpicedt.org/
14
15 This program is free software; you can redistribute it and/or
16 modify it under the terms of the GNU General Public License
17 as published by the Free Software Foundation; either version 2
18 of the License, or any later version.
19
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, write to the Free Software
27 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 */
29
30 package jpicedt.format.eepic.parser;
31
32 import jpicedt.graphic.io.parser.RootExpression;
33 import jpicedt.graphic.io.parser.Pool;
34
35 import jpicedt.graphic.PicPoint;
36 import jpicedt.graphic.model.*;
37
38 import java.awt.Color;
39 import java.io.*;
40 import java.util.*;
41
42 /**
43 * Grammar tree for the epic/eepic parser. Since most shared variables are held by the LaTeXParser, the
44 * latter is absolutely needed.
45 */
46 public class EepicParser extends RootExpression {
47
48
49 /**
50 * Creates a new grammar tree for the Eepic format
51 */
52 public EepicParser(Pool pool) {
53
54 add(new EepicLineThicknessExpression(pool));
55 add(new EepicPathCommand(pool)); // \\path(x1,y1)...(xN,yN)
56 add(new EepicDrawlineCommand(pool)); // \\drawline[stretch](x1,y1)...(xN,yN)
57 }
58
59 /**
60 * reinit eepic/LaTeX related parameters
61 */
62 public void reinit(){
63
64 // add eepic specific initialization here
65 }
66
67 }