Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.2 KB

README.en-US.md

File metadata and controls

52 lines (33 loc) · 1.2 KB

Simple BNF Defined Plain Text's Cartesian Production Generator

中文(简体)

Grammar

  • bracket including '(', ')', '[', ']', '<', '>' with() and <>'s meaning identical, [] meaning optional
  • the OR operator |

e.g. input

I <wanna|want to|need to> have <lunch|dinner>.

output

I wanna have lunch.
I wanna have dinner.
I want to have lunch.
I want to have dinner.
I need to have lunch.
I need to have dinner.

Usage

invoke class Main, parameters are as follows

[-o <output-file>] [-append] <input-file> [input-file]...

parameters

  • -o specify an output file, the default one is output.txt
  • -append append to the output file rather than overwriting it
  • multiple input file can be provided at once

Note: output encoding depends on the encoding of the first input file

Dependencies

depend on com.mozilla.universalchardet to detect file encoding

PLEASE TELL ME IF THERE IS A BETTER ONE TO USE

地址在此处

LICENSE

com.mozilla.universalchardet uses Mozilla Public License

The rest of this project uses WTFPL