Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Lexer for the YPO plain text alternative i18next file format

License

Notifications You must be signed in to change notification settings

coldrye-archive/ypo-lexer-ypo

Repository files navigation

Build Status NPM

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

About

Lexer for the YPO plain text alternative i18next file format

Resources

License

Stars

Watchers

Forks

Packages

No packages published