Commit cdcba4d6 authored by Bas Lijnse's avatar Bas Lijnse

Cleanup of dirs, environment files and modules

git-svn-id: https://svn.cs.ru.nl/repos/clean-platform/trunk@37 2afc29ad-3112-4e41-907a-9359c7e6e986
parent e143aab4
......@@ -15,20 +15,22 @@ Database.SQL.MySQL
Database.SQL.PostgreSQL
Database.SQL.SQLite
Gui
Gui.ObjectIO
GUI
GUI.ObjectIO
Internet
Internet.Email
Internet.Http
Internet.Http.Cgi
Internet.Http.HttpServer
Internet.HTTP
Internet.HTTP.CGI
Internet.HTTP.HTTPServer
Math
Math.Random
Network
Network.Tcp
Network.Udp
Network.IP
Network.TCP
Network.UDP
System
System.Args
......@@ -44,9 +46,9 @@ Test.Gast
Text
Text.Config
Text.Csv
Text.CSV
Text.Encodings.Base64
Text.Encodings.Mime
Text.Html
Text.Encodings.MIME
Text.HTML
Text.RegEx
Text.Xml
Text.XML
......@@ -4,7 +4,8 @@ the Clean Platform library collection.
== Type names ==
The names of types should be clear and informative, and should always start with a capital.
If the name of a type consists of multiple words, each new word should start with a capital.
The constructors of a type should also start with a capital.
The constructors of a type should also start with a capital. Whenever the name is an abbreviation
the abbreviation should be written using only capitals (e.g. GUI,SQL,HTTP).
== Function names ==
Function names should *not* start with a capital, but when a function consists of multiple words,
......
......@@ -4,20 +4,20 @@ Environments
EnvironmentName: Clean Platform
EnvironmentPaths
Path: {Application}\Libraries\StdEnv
Path: {Application}\CleanPlatform\src\libraries
Path: {Application}\CleanPlatform\src\libraries\Data
Path: {Application}\CleanPlatform\src\libraries\Database
Path: {Application}\CleanPlatform\src\libraries\Gui
Path: {Application}\CleanPlatform\src\libraries\Internet
Path: {Application}\CleanPlatform\src\libraries\Internet\Http
Path: {Application}\CleanPlatform\src\libraries\Math
Path: {Application}\CleanPlatform\src\libraries\Network
Path: {Application}\CleanPlatform\src\libraries\Network\OS-Windows
Path: {Application}\CleanPlatform\src\libraries\System
Path: {Application}\CleanPlatform\src\libraries\System\OS-Windows
Path: {Application}\CleanPlatform\src\libraries\Test
Path: {Application}\CleanPlatform\src\libraries\Text
Path: {Application}\CleanPlatform\src\libraries\Text\Encodings
Path: {Application}\Platform\src\libraries\OS-Independent
Path: {Application}\Platform\src\libraries\OS-Independent\Data
Path: {Application}\Platform\src\libraries\OS-Independent\Database
Path: {Application}\Platform\src\libraries\OS-Independent\GUI
Path: {Application}\Platform\src\libraries\OS-Independent\Internet
Path: {Application}\Platform\src\libraries\OS-Independent\Internet\HTTP
Path: {Application}\Platform\src\libraries\OS-Independent\Math
Path: {Application}\Platform\src\libraries\OS-Independent\Network
Path: {Application}\Platform\src\libraries\OS-Independent\System
Path: {Application}\Platform\src\libraries\OS-Independent\Test
Path: {Application}\Platform\src\libraries\OS-Independent\Text
Path: {Application}\Platform\src\libraries\OS-Independent\Text\Encodings
Path: {Application}\Platform\src\libraries\OS-Windows\Network
Path: {Application}\Platform\src\libraries\OS-Windows\System
EnvironmentCompiler: Tools\Clean System\CleanCompiler.exe
EnvironmentCodeGen: Tools\Clean System\CodeGenerator.exe
EnvironmentLinker: Tools\Clean System\StaticLinker.exe
......
all:
clm -I `cat ../env/cplibs.txt` -nt -nr WebDemo -o WebDemo
clm -I `cat "../env/Clean Platform.dirs"` -nt WebDemo -o WebDemo
clm -I `cat "../env/Clean Platform.dirs"` -nt IPLookup -o IPLookup
definition module Http
definition module HTTP
// This library defines HTTP related types and functions
import StdString
......
implementation module Http
implementation module HTTP
import StdOverloaded, StdString, StdList, StdArray, StdFile, StdBool
import HashTable, Maybe, Text, UrlEncoding, Mime
......
definition module Cgi
definition module CGI
import Http
import HTTP
:: CGIOption = CGIOptStaticFallback Bool // If all request handlers fail, should the static file handler be tried (default False)
| CGIOptParseArguments Bool // Should the query and body of the request be parsed (default True)
......
implementation module Cgi
implementation module CGI
import StdFile, StdInt, StdBool, StdArray
import Maybe, Http, Text, Environment
import Maybe, HTTP, Text, Environment
//Http headers which should be polled in the environment
CGI_HEADERS :== [ ("Content-Type","CONTENT_TYPE")
......
definition module Mime
definition module MIME
encodeMimeMultipart :: !String [([(String,String)], String)] -> String
decodeMimeMultipart :: !String !String -> [([(String,String)], String)]
implementation module Mime
implementation module MIME
import StdOverloaded, StdString, StdList, StdArray
import Maybe, Text
......
definition module Html
definition module HTML
/**
* This module provides data types for easy construction of Html documents.
* All tags and attributes of Xhtml 1.0 transitional are captured
......
implementation module Html
implementation module HTML
import StdString, StdArray, StdList, StdTuple, StdBool
......
#!/bin/sh
echo "Setting up the Clean Platform library collection"
echo "==="
echo "Creating libraries/cplibs.txt..."
find libraries -type d | grep -v "Clean System Files" | grep -v "\.svn" | grep -v "OS-[Windows|MacOS]" | xargs printf "$PWD/%s:" | xargs printf "%s." > env/cplibs.txt
echo "Creating 'Clean Platform.dirs'..."
find libraries -type d | grep -v "Clean System Files" | grep -v "\.svn" | grep -v "OS-[Windows|MacOS]" | xargs printf "$PWD/%s:" | xargs printf "%s." > "env/Clean Platform.dirs"
echo "==="
echo "You can now include the Clean platform libraries by adding \"-I \`cat env/cplibs.txt\`\" to your clm options."
echo "You can now include the Clean platform libraries by adding \"-I \`cat \"env/Clean Platform.dirs\"\`\" to your clm options."
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment