Debian Codegraph @

etc/doxygen/mainpage.dox

raw
1 /*!
2 * \file
3 *
4 * \brief Main page of Doxygen documentation
5 *
6 * \author Written by Antoine Le Hyaric
7 * \author Laboratoire Jacques-Louis Lions
8 * \author Université Pierre et Marie Curie-Paris6, UMR 7598, Paris, F-75005 France
9 * \author http://www.ljll.math.upmc.fr/lehyaric
10 *
11 * \copyright This file is part of Freefem++
12 *
13 * \copyright Freefem++ is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU Lesser General Public License as
15 * published by the Free Software Foundation; either version 2.1 of
16 * the License, or (at your option) any later version.
17 *
18 * \copyright Freefem++ is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License for more details.
22 *
23 * \copyright You should have received a copy of the GNU Lesser General Public
24 * License along with Freefem++; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 *
27 * headeralh brief="Main page of Doxygen documentation" dox default=0 freefem upmc written
28 */
29
30 /*! \mainpage Technical Documentation
31
32 \section broadview Broad View
33
34 A FreeFEM script is first translated into a tree of expressions of type CListOfInst (the language grammar is defined
35 in \ref language) and then evaluated by calling CListOfInst::eval(). Any resulting graphical data is converted into a
36 stream of bytes by the PlotStream class before being sent to the ffglut program (see ffglut.cpp) via a pipe.
37
38 \section details Detailed Program Start Sequence
39
40 - The C++ main() function is part of platform-dependent treatments. It calls mymain() (in lg.ypp) from:
41
42 - Unix: src/Graphics/sansrgraph.cpp
43 - Windows: src/Graphics/Pcrgraph.cpp
44 - MacOS: src/Graphics/macrgraf.cpp
45
46 - in lg.ypp:
47
48 - mymain() calls mainff(), which calls Compile(), which calls the standard yyparse() function.
49
50 - yyparse() scans the EDP script thanks to the lexer #mylex and generates objects of type YYSTYPE according to the
51 grammar described in lg.ypp.
52
53 - When the "start" symbol is successfully scanned, yylval (of type YYSTYPE) contains the whole tree of expressions
54 as an object of type CListOfInst. CListOfInst::eval() is called (with one #Stack argument built by #newStack()) to
55 run the script.
56
57 \section language FreeFEM-specific Language Elements
58
59 - <b>Types</b> <!-- [[file:src/lglib/lg.ypp::type_of_dcl]] -->
60 - a lexical element of reference #yytokentype #TYPE defined by calling mylex::Add(Key,aType)
61 - a TypeArray() if followed by square brackets
62 - a TypeTemplate() if followed by lower/greater signs
63 - <b>Finite Element Space Types</b> <!-- [[file:src/lglib/lg.ypp::ID_space]] -->
64 - NewFEvariable()
65 - NewFEarray()
66
67 - <b>Variables</b> <!-- [[file:src/lglib/lg.ypp::declaration]] -->
68 - Block::NewVar<#LocalVariable>() <!-- see [[file:src/lglib/lg.ypp::list_of_dcls]] -->
69 - Block::NewVar<#LocalVariableFES>() for \b fespaces <!-- [[file:src/lglib/lg.ypp::fespace_def]] -->
70
71 - \b Instructions <!-- [[file:src/lglib/lg.ypp::instruction]] -->
72 - \b load : load()
73 - \b border :
74 - E_Border <!-- [[file:src/lglib/lg.ypp::BORDER_ID]] -->
75 - local variable and boundaries <!-- [[file:src/lglib/lg.ypp::border_expr]] -->
76 - instruction <!-- [[file:src/lglib/lg.ypp::instruction]] -->
77 - \b varf : #t_form defined in init_lgfem() <!-- [[file:src/fflib/lgfem.cpp::varf]] -->
78 - \b problem : Problem
79 - \b solve : Solve
80
81 - \b API : ffapi.hpp <!-- [[file:src/fflib/ffapi.hpp]] -->
82
83 <em>(this page is written in mainpage.dox and can be viewed on the internet at
84 http://www.ljll.math.upmc.fr/lehyaric/freefem/html)</em>
85
86 */
87
88 /*!
89 * Local Variables:
90 * mode:c
91 * ispell-local-dictionary:"british"
92 * coding:utf-8
93 * End:
94 */