NAME

sql2003ast - SQL-2003 AST

VERSION

version 0.005

AUTHOR

Jean-Damien Durand <jeandamiendurand@free.fr>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Jean-Damien Durand.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

NAME

sql2003ast - SQL AST

SYNOPSIS

 sql2003ast [options] [file]

where options can be:

  --help            This help.
  --xml             XML mode. Default is a true value. Say --noxml for bless mode.
  --host            Host language.
  --trace_terminals Trace terminals. Default is a false value.
  --trace_values    Trace AST values. Default is a false value.

and arguments can be:

  file          Input filename containing SQL statement

NOTES

  • Say --noxml to disable the XML mode, i.e. to use a blessed mode (i.e. a hierarchical structure of blessed perl's arrays).

  • --host option value if when grammar is using Host Identifiers, e.g. "EXEC SQL SELECT salary INTO :a FROM employees". Default host SQL sub-grammar is the C language. Supported values are: C, Ada, Cobol, Fortran, Mumps, Pascal, PLI.

  • If file is absent or equal to '-', then STDIN is assumed.

  • Any ambiguous parse will result in a failure, with a hopefully clear stack trace.

SEE ALSO

MarpaX::Languages::SQL2003::AST