Zontroy Single File (zsif)

This file type is used to generate lines of code in a single file. Our code files use the same extension which is zsif for different languages, but before zsif extension we should also use the original file extension as below:

Syntax

[file_name].[file_extension].zsif

Example 1
For this example, we are going to produce empty classes.

Input

// MyClass.java.zsif
public class MyClass {

}

Output

// MyClass.java
public class MyClass {

}

Input

// MyClass.cs.zsif
public class MyClass {

}

Output

// MyClass.cs
public class MyClass {

}

Input

# MyClass.py.zsif
class MyClass:

Output

# MyClass.py
class MyClass:

Example 2

Let’s assume we use a database with tables : Table1, Table2, Table3, …, Table100 this time.

Input

// MyClass.java.zsif
public class MyClass {
for(((item:tables))){{{
class Nested[[[item.name]]] {

}

}}}
}

Output

// MyClass.java
public class MyClass {
class NestedTable1 {

}

class NestedTable2 {

}

class NestedTable3 {

}

class NestedTable100 {

}
}

Input

// MyClass.cs.zsif
public class MyClass {
for(((item:tables))){{{
class Nested[[[item.name]]] {

}

}}}
}

Output

// MyClass.cs
public class MyClass {
class NestedTable1 {

}

class NestedTable2 {

}

class NestedTable3 {

}

class NestedTable100 {

}
}

Input

# MyClass.py.zsif
class MyClass:
for(((item:tables))){{{
class Nested[[[item.name]]]:

}}}

Output

# MyClass.py
class MyClass:
class NestedTable1:

class NestedTable2:

class NestedTable3:

class NestedTable100: