| 1 |
# This file is part of python-ly, https://pypi.python.org/pypi/python-ly |
| 2 |
# |
| 3 |
# Copyright (c) 2008 - 2015 by Wilbert Berendsen |
| 4 |
# |
| 5 |
# This program is free software; you can redistribute it and/or |
| 6 |
# modify it under the terms of the GNU General Public License |
| 7 |
# as published by the Free Software Foundation; either version 2 |
| 8 |
# of the License, or (at your option) any later version. |
| 9 |
# |
| 10 |
# This program is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with this program; if not, write to the Free Software |
| 17 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
# See http://www.gnu.org/licenses/ for more information. |
| 19 |
|
| 20 |
""" |
| 21 |
Parses and tokenizes LaTeX input, recognizing LilyPond in LaTeX. |
| 22 |
""" |
| 23 |
|
| 24 |
from __future__ import unicode_literals |
| 25 |
|
| 26 |
from . import _token |
| 27 |
from . import Parser |
| 28 |
|
| 29 |
|
| 30 |
class ParseLaTeX(Parser): |
| 31 |
mode = "latex" |
| 32 |
items = ( |
| 33 |
_token.Space, |
| 34 |
) |
| 35 |
|
| 36 |
|