ragel.sh 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Ragel generator
  2. # For more information about Ragel: http://www.complang.org/ragel/
  3. #export OPTIONS="-C -L -G2"
  4. export OPTIONS="-C -L -T0"
  5. # HTTP/HTTPS URL parser
  6. ragel.exe $OPTIONS -o ./src/parsers/thttp_parser_url.c ./ragel/thttp_parser_url.rl
  7. # HTTP message (both requests an responses) parser.
  8. ragel.exe $OPTIONS -o ./src/parsers/thttp_parser_message.c ./ragel/thttp_parser_message.rl
  9. # HTTP headers parser
  10. ragel.exe $OPTIONS -o ./src/parsers/thttp_parser_header.c ./ragel/thttp_parser_header.rl
  11. # ==Authorization
  12. ragel.exe $OPTIONS -o ./src/headers/thttp_header_Authorization.c ./ragel/thttp_parser_header_Authorization.rl
  13. # ==Content-Length
  14. ragel.exe $OPTIONS -o ./src/headers/thttp_header_Content_Length.c ./ragel/thttp_parser_header_Content_Length.rl
  15. # ==Content-Type
  16. ragel.exe $OPTIONS -o ./src/headers/thttp_header_Content_Type.c ./ragel/thttp_parser_header_Content_Type.rl
  17. # ==Dummy
  18. ragel.exe $OPTIONS -o ./src/headers/thttp_header_Dummy.c ./ragel/thttp_parser_header_Dummy.rl
  19. # ==ETag
  20. ragel.exe $OPTIONS -o ./src/headers/thttp_header_ETag.c ./ragel/thttp_parser_header_ETag.rl
  21. # ==Sec_WebSocket_Accept
  22. ragel.exe $OPTIONS -o ./src/headers/thttp_header_Sec_WebSocket_Accept.c ./ragel/thttp_parser_header_Sec_WebSocket_Accept.rl
  23. # ==Sec_WebSocket_Key
  24. ragel.exe $OPTIONS -o ./src/headers/thttp_header_Sec_WebSocket_Key.c ./ragel/thttp_parser_header_Sec_WebSocket_Key.rl
  25. # ==Sec_WebSocket_Protocol
  26. ragel.exe $OPTIONS -o ./src/headers/thttp_header_Sec_WebSocket_Protocol.c ./ragel/thttp_parser_header_Sec_WebSocket_Protocol.rl
  27. # ==Sec_WebSocket_Version
  28. ragel.exe $OPTIONS -o ./src/headers/thttp_header_Sec_WebSocket_Version.c ./ragel/thttp_parser_header_Sec_WebSocket_Version.rl
  29. # == Transfer-Encoding
  30. ragel.exe $OPTIONS -o ./src/headers/thttp_header_Transfer_Encoding.c ./ragel/thttp_parser_header_Transfer_Encoding.rl
  31. # ==WWW-Authenticate
  32. ragel.exe $OPTIONS -o ./src/headers/thttp_header_WWW_Authenticate.c ./ragel/thttp_parser_header_WWW_Authenticate.rl