[231877]: src / parser / README.txt  Maximize  Restore  History

Download this file

46 lines (24 with data), 1.0 kB

 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
Parser for panotools and hugin configuration scripts.

* Usage

USAGE:

This bison/yacc parser implements a simple parser that reads a file
and converts it into an equivalent data structure. The main function
to use is:


    scriptPtr = panoScriptParse(inputFilename, dereference?, scriptPtr);

This returns a data structure with all the info in the file.
Parameters:

  inputFilename: filename to parse

  dereference? : should the referenced variables be resolved? If true
    variables such as v=0 will be replaced with the value of v in image 0.

  scriptPtr:   : if NOT null, use that point, otherwise allocate a new
      one.

Return value:
   a pointer to the structure that contains all the data. It should
   be disposed properly using panoParseDispose.

CAVEATS:

  - It is not reentrant.
  - Errors go to standard output (but this is fixable)





void panoParseDispose(pt_script **scriptVar)

* Example:

testparser takes as input a hugin PTO file, and generates one that
libpano13 tools can use.