-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
pizza.scroll
58 lines (50 loc) · 2.58 KB
/
pizza.scroll
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
51
52
53
54
55
56
57
58
import ../code/conceptPage.scroll
id pizza
name Pizza
appeared 2001
tags pl
website https://pizzacompiler.sourceforge.net
supersetOf java
fileType text
wordRank 4629
centralPackageRepositoryCount 0
country United Kingdom
originCommunity https://sourceforge.net/p/pizzacompiler/_list/tickets
leachim6 Pizza
filepath p/Pizza.pizza
fileExtensions pizza
example
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
printToken System.out.println
stringToken "
hasPrintDebugging true
hasStrings true
"Hello world"
wikipedia https://en.wikipedia.org/wiki/Pizza_(programming_language)
example
public final class Main {
public int main(String args[]) {
System.out.println(
new Lines(new DataInputStream(System.in))
.takeWhile(nonEmpty)
.map(fun(String s) -> int { return Integer.parseInt(s); })
.reduceLeft(0, fun(int x, int y) -> int { return x + y; }));
while(x == 0) { map.create.newInstance() }
}
}
related java
summary Pizza is an open-source superset of Java 1.4, prior to the introduction of generics for the Java programming language. In addition to its own solution for adding generics to the language, Pizza also added function pointers and algebraic types with case classes and pattern matching. In August 2001, the developers made a compiler capable of working with Java. Most Pizza applications can run in a Java environment, but certain cases will cause problems. Work on Pizza has more or less stopped since 2002. Its main developers have concentrated instead on the Generic Java project, another attempt to add generics to Java which was eventually adopted into the official language version 1.5. The pattern matching and other functional programming-like features have been further developed in the Scala programming language. Martin Odersky remarked, "we wanted to integrate the functional and object-oriented parts in a cleaner way than what we were able to achieve before with the Pizza language. [...] In Pizza we did a clunkier attempt, and in Scala I think we achieved a much smoother integration between the two."
pageId 509700
created 2004
backlinksCount 22
revisionCount 94
dailyPageViews 44
appeared 2001
hopl https://hopl.info/showlanguage.prx?exp=2376
isbndb 1
year|publisher|title|authors|isbn13
2019|Independently Published|Will Code For Pizza - Funny Computer Programming Notebook: Reat Present For The Best Software Engineers, Code Monkeys, New Coders, Computer Science ... Designers Who Love Smart Programming Humor|Prog Ana Maria Vesga Diaz|9781651732557