summaryrefslogtreecommitdiffstats
path: root/tinyHTTP/ragel.sh
blob: fc17b67008e6337892b4fb5eef8db4e0071a2491 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
# Ragel generator
# For more information about Ragel: http://www.complang.org/ragel/

#export OPTIONS="-C -L -G2"
export OPTIONS="-C -L -T0"

# HTTP/HTTPS URL parser
ragel.exe $OPTIONS -o ./src/parsers/thttp_parser_url.c ./ragel/thttp_parser_url.rl

# HTTP message (both requests an responses) parser.
ragel.exe $OPTIONS -o ./src/parsers/thttp_parser_message.c ./ragel/thttp_parser_message.rl

# HTTP headers parser
ragel.exe $OPTIONS -o ./src/parsers/thttp_parser_header.c ./ragel/thttp_parser_header.rl




# ==Authorization
ragel.exe $OPTIONS -o ./src/headers/thttp_header_Authorization.c ./ragel/thttp_parser_header_Authorization.rl

# ==Content-Length
ragel.exe $OPTIONS -o ./src/headers/thttp_header_Content_Length.c ./ragel/thttp_parser_header_Content_Length.rl

# ==Content-Type
ragel.exe $OPTIONS -o ./src/headers/thttp_header_Content_Type.c ./ragel/thttp_parser_header_Content_Type.rl

# ==Dummy
ragel.exe $OPTIONS -o ./src/headers/thttp_header_Dummy.c ./ragel/thttp_parser_header_Dummy.rl

# ==ETag
ragel.exe $OPTIONS -o ./src/headers/thttp_header_ETag.c ./ragel/thttp_parser_header_ETag.rl

# ==Sec_WebSocket_Accept
ragel.exe $OPTIONS -o ./src/headers/thttp_header_Sec_WebSocket_Accept.c ./ragel/thttp_parser_header_Sec_WebSocket_Accept.rl

# ==Sec_WebSocket_Key
ragel.exe $OPTIONS -o ./src/headers/thttp_header_Sec_WebSocket_Key.c ./ragel/thttp_parser_header_Sec_WebSocket_Key.rl

# ==Sec_WebSocket_Protocol
ragel.exe $OPTIONS -o ./src/headers/thttp_header_Sec_WebSocket_Protocol.c ./ragel/thttp_parser_header_Sec_WebSocket_Protocol.rl

# ==Sec_WebSocket_Version
ragel.exe $OPTIONS -o ./src/headers/thttp_header_Sec_WebSocket_Version.c ./ragel/thttp_parser_header_Sec_WebSocket_Version.rl

# == Transfer-Encoding
ragel.exe $OPTIONS -o ./src/headers/thttp_header_Transfer_Encoding.c ./ragel/thttp_parser_header_Transfer_Encoding.rl

# ==WWW-Authenticate
ragel.exe $OPTIONS -o ./src/headers/thttp_header_WWW_Authenticate.c ./ragel/thttp_parser_header_WWW_Authenticate.rl
OpenPOWER on IntegriCloud