Burkhart Wolff
7bca4e8954
stand der diskussion
2018-03-28 13:57:25 +02:00
Burkhart Wolff
df5bf507cf
Some more elements for a *parser* of LaTeX.
...
>>>>>>>>>>>>>>>>>
import scala.util.parsing.combinator.Parsers
import scala.util.parsing.input.{NoPosition, Position, Reader}
object LaTeXParser extends Parsers {
override type Elem = LaTeXToken
class LaTeXTokenReader(tokens: Seq[LaTeXToken]) extends Reader[Seq[LaTeXToken]] {
override def first: Seq[LaTeXToken] = tokens.head::Nil
override def atEnd: Boolean = tokens.isEmpty
override def pos: Position = NoPosition
override def rest: Reader[Seq[LaTeXToken]] = new LaTeXTokenReader(tokens.tail)
}
}
compiles, but the rest does not work. Unknown parsers etc.
Pb apparently with importing.
2018-03-28 13:08:55 +02:00
Burkhart Wolff
38f8772a6a
derniers touches
2018-03-28 09:24:27 +02:00
Burkhart Wolff
868e6537db
Kleinkram
...
- ein paar Elemente im Parser
- neue tests im Exampl
2018-03-14 18:03:35 +01:00
Burkhart Wolff
5c5ff0ae0a
scala combinators parse-group, purify, and a very first transducer.
2018-03-08 19:07:53 +01:00
Burkhart Wolff
6c4b19944f
added parse-group combinator on Token Lists.
2018-03-08 10:43:48 +01:00
Burkhart Wolff
8f35faf389
yet another idea …
2018-03-02 07:29:53 +01:00
Burkhart Wolff
c487a16e38
Added examples for samples
...
— preparing discussion with Achim.
2018-03-02 07:26:30 +01:00
Burkhart Wolff
0baa75d29d
Discovery : the bug was actually not a bug, rather a feature.
2018-03-01 17:32:15 +01:00
Burkhart Wolff
dda06c36df
A first implementation of the LaTeX Converter in Scala.
...
Type-checked till “Testing Zone”
Contains essentially the LaTeX Lexer, but still
contains an error wrt. the ambiguity:
- \begin … {
- \<arbitrary command>
2018-03-01 17:14:03 +01:00