What's new?
|
Help
|
Directory
|
Sign in
heron-language
Heron is an object-oriented programming language for model driven architecture
Project Home
Downloads
Wiki
Issues
Source
Checkout
|
Browse
|
Changes
|
Source Path:
svn
/
trunk
/
output
/
Line.java
‹ r44
r47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
public class Line extends HeronObject {
// attributes
public Point begin;
public Point end;
// operations
public Line(final double x0, final double y0, final double x1, final double y1){
{
begin = new Point(x0 , y0 ) ;
end = new Point(x1 , y1 ) ;
}
}
public double length(){
{
return Demo .distance (begin , end ) ;
}
}
// state entry procedures
// dispatch function
public void onSignal(HeronSignal signal) {
if (false) {
}
}
}
Show details
Hide details
Change log
r46
by cdiggins on Apr 08, 2008
Diff
Go to:
/trunk/heron_grammar.hpp
/trunk/heron_to_java.hpp
/trunk/input/Demo.hrn
/trunk/jaction_grammar.hpp
/trunk/output/Ball.java
/trunk/output/Collection.java
/trunk/output/Demo.java
/trunk/output/HeronApplication.java
/trunk/output/Line.java
/trunk/output/Painter.java
/trunk/output/Point.java
/trunk/output/Shooter.java
/trunk/output/Vector.java
Project members,
sign in
to write a code review
Older revisions
r44
by cdiggins on Mar 26, 2008
Diff
Improved parsing. Java code generation still not great.
r41
by cdiggins on Feb 23, 2008
Diff
All revisions of this file
File info
Size: 534 bytes, 23 lines
View raw file