Skip to content

Line Macro will read the input file line by line and handle macroinstruction.

License

Notifications You must be signed in to change notification settings

infotoo/line-macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

line-macro

Line Macro will read the input file line by line and handle macroinstruction.

Usage

line-macro  INPUT_FILE_PATH  [OUTPUT_FILE_PATH]

INPUT_FILE_PATH         Path of input file

OUTPUT_FILE_PATH        Path of output file
                        It will be overwrited if file exists. If not given, output to stdout insteads.

Syntax

Each macroinstruction should start from the beginning of the line. Only empty spaces or tabs are accepted before the macroinstruction, Otherwise, the line will be considered as a normal line.

Normal lines will be sent to output directly without any changes.

~import

Import external file from the FILE_PATH and replace the current line. The macroinstruction in the external file will be handled recursively.

~import  FILE_PATH ;

Error

Line Macro will stop for any error occurs.

About

Line Macro will read the input file line by line and handle macroinstruction.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages