a simple DSL which allows you to generate data fast and simple
Go to file
64 bit machine 977a4196f6 add INSTALL.md 2022-06-11 21:34:21 +08:00
src add INSTALL.md 2022-06-11 21:34:21 +08:00
.gitignore inital commit : release 1.0.0 2022-06-11 11:59:31 +08:00
Cargo.lock inital commit : release 1.0.0 2022-06-11 11:59:31 +08:00
Cargo.toml inital commit : release 1.0.0 2022-06-11 11:59:31 +08:00
INSTALL.md add INSTALL.md 2022-06-11 21:34:21 +08:00
LICENSE inital commit : release 1.0.0 2022-06-11 11:59:31 +08:00
README.md inital commit : release 1.0.0 2022-06-11 12:16:52 +08:00

README.md

Data Generator

a simple domain specific language which allows you to generate data fast and easy

Usage

Here is an example of how to generate data of a+b problem using data generator

create a new text file named example.txt

open the editor and write

{i32} {i32}

execute using data generator

## linux
./data_generator -f example.txt -c 10
## replace `./data_generator` to `data_generator.exe` in windows

waiting for some time and it is done,how easy it is!

Tokens

single tokens

here a some single tokens which are allow to use in data_generator

i16 //short
i32 //int
i64 //long long
i128 //int128_t

/*tokens start with u are all the tokens above but unsigned.So no marks here*/
u16
u32
u64
u128

char // A UTF-8 charaters
string //ASCII. range from 20 to 126 (that means no control charaters.Will add some later) (the maxium len are u16::MAX)
bigint //maxium len are u16::MAX

multiple tokens

TODO...

TODOs

add multiple tokens (allows user to control the random data more fine)

add documentations for the source code