File: psp_parser.psp

package info (click to toggle)
libapache2-mod-python 3.5.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,864 kB
  • sloc: python: 7,471; ansic: 7,025; makefile: 296; lex: 246; sh: 212
file content (35 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (3)
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
# format of this file
# Comment lines are ignored (python or psp).
# Lines beginning with test will be included, which 
# includes lines generated by python code.
# Blank lines are ignored.
#
# The test format is "test:expected_result:test_string$"
# where the string '$' is a token to indicate the end of the test line.
# The '$' character was chosen as it's unlikely to be in the output of
# the parser.
# In processing the expected_result,  the '-' character will be replace
# by the '\' character.
# The following substitutions will also be made in the expect_result
# LF	linefeed character
# CR 	carriage-return character
# TB	tab character


# BEGIN$
test:-n:\n$
test:-r:\r$
test:-t:\t$
test:-r-n:\r\n$
<%
req.write("test:-n:\\n$")
%>

<%
test_str='single_quotes'
%>
test:'single_quotes':'<%= test_str %>'$
<%
test_str='double_quotes'
%>
test:"double_quotes":"<%= test_str %>"$