Setting output
Output the conversion result in betwenn the output start and end marks in the source file.
ie)
ie)
// [PSGG OUTPUT START] indent(4) $/./$ OUTPUT HERE !! // [PSGG OUTPUT END]
Output start mark
The output start mark is set at code_output_start of setting.ini.
After the start mark, set numbers of indent and conversion command.
Format: START-MARK indent (number) $conversion command$
Example)
After the start mark, set numbers of indent and conversion command.
Format: START-MARK indent (number) $conversion command$
Example)
[PSGG OUTPUT START] indent(4) $/^S_/$--- Indent 4 characters. Convert states starting with S_.
Converison command
$/Regular expression/$After filtering each state with regular expression, convert states to program.
$/Regular expression/->#macro$After filtering each state with regular expression, convert states to program using #macro.
※ The order of conversion is alphabetical order.
Output end mark
The output end mark is set at code_output_end of setting.ini.
End of output.
End of output.
Sample: Create enum of state names
# Macro
#enum=[state],# Source
public enum STATE { //PSGG OUTPUT START] indent(4) $/^S_/->#enum$ //PSGG OUTPUT END] }# Converted
public enum STATE { //[SYN-G-GEN OUTPUT START] indent(4) $/^S_/->#enum$ S_0001, S_0002, : //[SYN-G-GEN OUTPUT END] }