File: macrofile.ms

package info (click to toggle)
macrosystem 0.51-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 560 kB
  • ctags: 80
  • sloc: sh: 7,645; cpp: 787; makefile: 62
file content (39 lines) | stat: -rw-r--r-- 1,168 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# This is an example of a MacroSystem macro file.
#
# Macro files can have comments starting with '#'.
# The first space after a macro name is ignored.
#

macro_file_topic: With <%library_name%> you can use macro files.

library_name: MacroSystem

macro_file:
	
	<%macro_file_topic%>
	
	Think about a macro file as a storage of macros. You can keep macros
	that you change very often or macros that span across multiple files
	in a macro file, for example.
	
	<%multiline%>
	<%macro_file_parse_off%>
	This text has been generated using the macro file 'macrofile.ms'.
	The 'macrofile' example makes some changes to the imported macros and
	export a new macro file called 'exported.ms'.
	

multiline:
	A macro file can have multiline macros! To create a multiline macro
	you just have to insert all macro contents below its declaration

# You can insert comments even in multiline macros.
# Empty lines (without <TAB>) are ignored in multiline macros.

	and insert a <TAB> character before every line.

macro_file_parse_off*:
	To define a macro with parsing off in a macro file, just insert
	an '*' after its name. This macro, for example, is not going to
	<%parse%>.