-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.dox
61 lines (61 loc) · 1.76 KB
/
doc.dox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* @author Craig Hesling ([email protected])
* @date Apr 6, 2014
*
* @mainpage General Info Index
*
* @section intro_sec Introduction
*
* TODO: Stick introduction here...
* @subsection expressions Expressions
*
* Example:
* expression is @f$(1 + 2)@f$
*
* @dot
* digraph G{
* node [shape = record, height=.1];
* node0[label = "<f0> |<f1> \'+\'|<f2> "];
* node1[label = "<f0> |<f1> 1|<f2> "];
* node2[label = "<f0> |<f1> 2|<f2> "];
* "node0":f0 -> "node1":f1;
* "node0":f2 -> "node2":f1;
* }
* @enddot
*
* Example:
* expression is \f$(1 + 2) + 3\f$
*
* @dot
* digraph G{
* node [shape = record, height=.1];
* node0[label = "<f0> |<f1> \'+\'|<f2> "];
* node1[label = "<f0> |<f1> \'+\'|<f2> "];
* node2[label = "<f0> |<f1> 3|<f2> "];
* node3[label = "<f0> |<f1> 1|<f2> "];
* node4[label = "<f0> |<f1> 2|<f2> "];
* "node0":f0 -> "node1":f1;
* "node0":f2 -> "node2":f1;
* "node1":f0 -> "node3":f1;
* "node1":f2 -> "node4":f1;
* }
* @enddot
*
* @section development Development
*
* @subsection quick_links Quick Links
* - Main library interface file for \ref expression.h
* - Main library implementation file for \ref expression.c
*
* @subsection debug_info Helpful for Debugging
* - valgrind --tool=memcheck --track-origins=yes --undef-value-errors=yes --leak-check=full ./expr "1 + 2"
* - valgrind --tool=memcheck --track-origins=yes --undef-value-errors=yes --leak-check=full ./expr "1 + 2"
* - target remote | /usr/lib/valgrind/../../bin/vgdb
*
* @subsection future_changes Future Wish List
* - Make string_to_expression take a start index parameter.
* This would allow recursive calls to not need temporary string
* buffers and syntax errors to contain proper index numbers.
* - Handle floats and doubles
* - Handle builtin functions
*/