source: gaycko/trunk/src/gaycko.c @ 4720

Last change on this file since 4720 was 4720, checked in by Jean-Yves Lamoureux, 10 years ago
  • parsing returns gDOM
File size: 322 bytes
RevLine 
[4716]1#include "gaycko.h"
2#include "io/io.h"
3#include "parsing/parse.h"
4
5int main(int argc, char *argv[]) {
6
7        gIO *stream = gaycko_open(argv[1]);
8        if(!stream) {
9                printf("Can't open %s\n", argv[1]);   
10                return -1;
11        }
12
[4720]13        gDOM *dom = gaycko_parse(gaycko_get_data(stream), gaycko_get_size(stream));
14        gaycko_close(stream);
[4716]15
[4720]16
17       
18
[4716]19}
20
21
Note: See TracBrowser for help on using the repository browser.