Hello,
I have this piece of grammar in a file idlsubset-tex:
\begin{grammar}
<specification> ::= <definition>
<definition> ::= <module> ';'
| <interface> ';'
<module> ::= 'module' <identifier> '\{' <definition> '\}'
\end{grammar}
If I include this in a tex file named test-grammar.tex:
\documentclass{article}
\usepackage{syntax}
\begin{document}
\title{Title}
\author{Autor}
\maketitle
\input{idl-subset.tex}
\end{document}
I get a pretty BNF grammar, but if I do the input in lyx, in a file named
test-grammar.lyx:
\lyxformat 2.15
\textclass article
\use_natbib 0
\use_numerical_citations 0
\begin_preamble
\usepackage{syntax}
\end_preamble
\layout Title
Title
\layout Author
Autor
\layout Standard
\begin_inset Include \input{idl-subset.lyx}
\end_inset
\the_end
I get a lot of errors, there must be something that is conflicting with
Syntax, does anybody knows how to bypass this behavior?
Thanks...
Andres Becerra.