Zontroy Inner Repeating File (ziref)

This file type is used to generate separate folders with code files in them. The code files also have lines of code in them. Our code files use the same extension which is ziref for different languages, but before ziref extension we should also use the original file extension as below:

Syntax

[folder_name].ziref
[file_name1].[file_extension1].ziref
[file_name2].[file_extension2].ziref

Example 1
Assume that we use a database with tables : TableA, TableB, TableC, …, TableZ

Input

// Folder : My[[[table.name]]].ziref
// File inside the folder : MyClass.java.ziref
public class MyClass {

}

Output

// Created folder : MyTableA
// Created file inside the folder : MyClass.java
public class MyClass{

}

// Created folder : MyTableB
// Created file inside the folder : MyClass.java
public class MyClass{

}

// Created folder : MyTableC
// Created file inside the folder : MyClass.java
public class MyClass{

}

// Created folder : MyTableZ
// Created file inside the folder : MyClass.java
public class MyClass{

}

Input

// Folder : My[[[table.name]]].ziref
// File inside the folder : MyClass.cs.ziref
public class MyClass {

}

Output

// Created folder : MyTableA
// Created file inside the folder : MyClass.cs
public class MyClass{

}

// Created folder : MyTableB
// Created file inside the folder : MyClass.cs
public class MyClass{

}

// Created folder : MyTableC
// Created file inside the folder : MyClass.cs
public class MyClass{

}

// Created folder : MyTableZ
// Created file inside the folder : MyClass.cs
public class MyClass{

}

Input

# Folder : My[[[table.name]]].ziref
# File inside the folder : MyClass.py.ziref
class MyClass:

Output

# Created folder : MyTableA
# Created file inside the folder : MyClass.py
class MyClass:

# Created folder : MyTableB
# Created file inside the folder : MyClass.py
class MyClass:

# Created folder : MyTableC
# Created file inside the folder : MyClass.py
class MyClass:

# Created folder : MyTableZ
# Created file inside the folder : MyClass.py
class MyClass:

Example 2

Assume that we use a database with tables : Table1, Table2, Table3, …, Table100 and each table has an id column and name column that has a name ending with its number.

Input

// Folder : Your[[[table.name]]]Folder.ziref
// File inside the folder : Your[[[table.name]]]Class.java.ziref
public class Your[[[table.name]]]Class {
// Columns :
for(((item:table.columns))){{{
// [[[item.name]]]
}}}
}

Output

// Created folder : YourTable1Folder
// Created file inside the folder : YourTable1Class.java
public class YourTable1Class {
// Columns :
// Id
// Name1
}

// Created folder : YourTable2Folder
// Created file inside the folder : YourTable2Class.java
public class YourTable2Class {
// Columns :
// Id
// Name2
}

// Created folder : YourTable3Folder
// Created file inside the folder : YourTable3Class.java
public class YourTable3Class {
// Columns :
// Id
// Name3
}

// Created folder : YourTable100Folder
// Created file inside the folder : YourTable100Class.java
public class YourTable100Class {
// Columns :
// Id
// Name100
}

Input

// Folder : Your[[[table.name]]]Folder.ziref
// File inside the folder : Your[[[table.name]]]Class.cs.ziref
public class Your[[[table.name]]]Class {
// Columns :
for(((item:table.columns))){{{
// [[[item.name]]]
}}}
}

Output

// Created folder : YourTable1Folder
// Created file inside the folder : YourTable1Class.cs
public class YourTable1Class {
// Columns :
// Id
// Name1
}

// Created folder : YourTable2Folder
// Created file inside the folder : YourTable2Class.cs
public class YourTable2Class {
// Columns :
// Id
// Name2
}

// Created folder : YourTable3Folder
// Created file inside the folder : YourTable3Class.cs
public class YourTable3Class {
// Columns :
// Id
// Name3
}

// Created folder : YourTable100Folder
// Created file inside the folder : YourTable100Class.cs
public class YourTable100Class {
// Columns :
// Id
// Name100
}

Input

# Folder : Your[[[table.name]]]Folder.ziref
# File inside the folder : Your[[[table.name]]]Class.py.ziref
class Your[[[table.name]]]Class:
# Columns :
for(((item:table.columns))){{{
# [[[item.name]]]
}}}

Output

# Created folder : YourTable1Folder
# Created file inside the folder : YourTable1Class.py
class YourTable1Class:
# Columns :
# Id
# Name1

# Created folder : YourTable2Folder
# Created file inside the folder : YourTable2Class.py
class YourTable2Class:
# Columns :
# Id
# Name2

# Created folder : YourTable3Folder
# Created file inside the folder : YourTable3Class.py
class YourTable3Class:
# Columns :
# Id
# Name3

# Created folder : YourTable100Folder
# Created file inside the folder : YourTable100Class.py
class YourTable100Class:
# Columns :
# Id
# Name100