ypo-lexer-ypo v0.0.4
ypo-lexer-ypo
ypo-lexer-ypo is a lexer for the YPO file format that procudes a token stream for consumption by for example the ypo parser. The lexer is rather dumb and does not validate the correct order of the input tokens.
You might want to have a look at ypo-cli instead and see how it can help you with your translations.
Releases
See the changelog for more information.
Project Site
The project site, see (2) under resources below, provides more insight into the project, including test coverage reports and API documentation.
Contributing
You are very welcome to propose changes and report bugs, or even provide pull requests on github.
See the contributing guidelines for more information.
Contributors
See contributors for more information.
Building
See build process and the available build targets for more information on how to build this.
See also development dependencies and on how to deal with them.
Installation
npm --save ypo-lexer-ypo
Runtime Dependencies
The dependencies denoted in italics must be provided by the using project.
Usage
import Lexer from 'ypo-lexer-ypo';
let lexer = new Lexer();
const inputStream = [
'# comment',
'#= lang en',
'#= ns ui.component',
'#! title',
'The Title'
];
for (let token of lexer.tokenize(inputStream))
{
console.log(token.toString());
}
Resources
- (1) Github Site
- (2) Project Site