Debian Codegraph @

m4.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 # m4.sh: Using the m4 macro processor
3
4 # Strings
5 string=abcdA01
6 echoscip-shell system . . echo. "len($string)" | m4scip-shell system . . m4. # 7
7 echoscip-shell system . . echo. "substr($string,4)" | m4scip-shell system . . m4. # A01
8 echoscip-shell system . . echo. "regexp($string,[0-1][0-1],\&Z)" | m4scip-shell system . . m4. # 01Z
9
10 # Arithmetic
11 var=99
12 echoscip-shell system . . echo. "incr($var)" | m4scip-shell system . . m4. # 100
13 echoscip-shell system . . echo. "eval($var / 3)" | m4scip-shell system . . m4. # 33
14
15 exit