This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(load "functionParser.scm") | |
(load "environment.scm") | |
;(define call/cc call-with-current-continuation) | |
(define interpret | |
(lambda (filename) | |
(interpret-func-call 'main '() (interpret-global-stmt-list (parser filename) newenv)))) | |
(define interpret-global-stmt-list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void connectToUrl() { | |
System.out.println("Connecting to requested server"); | |
String[] requestLine = requestHeaders.get(0).split(" "); | |
String uri = requestLine[1]; | |
String method = requestLine[0]; | |
String domain = uri.substring(7, uri.length()); | |
int index = domain.indexOf("/"); | |
String hostname = domain.substring(0, index); | |
String directory = domain.substring(index, domain.length()); |
NewerOlder