5 Commits

Author SHA1 Message Date
Sascha Brawer
f4ed6b5a85 Make pretty error messages for LexerError 2015-08-10 11:17:52 +02:00
Sascha Brawer
efbcba79a4 Handle inclusion of OpenType feature files 2015-08-10 11:17:52 +02:00
Sascha Brawer
ac700b0af5 Support FILENAME tokens when lexing OpenType feature files
When the lexer encounters the "include" keyword, it now enters
a special mode for scanning file names.  After having scanned over
the file name, the lexer goes back to normal.  The exact format
of file name strings is not defined by the OpenType feature file
specification, so we accept any character that is not a closing
parenthesis.
2015-08-10 11:17:52 +02:00
Sascha Brawer
612d2122ad Store file path in Lexer
This simplifies the implementation of the parser for
OpenType feature files, since it can now just keep
token locations returned by the lexer.  Before this
change, the parser had to un-pack the location tuples
and build new tuples that included the file path.
2015-08-10 11:17:52 +02:00
Sascha Brawer
da29d22748 Add lexer for OpenType feature files 2015-08-10 11:17:52 +02:00