What's new? | Help | Directory | Sign in
Google
heron-language
Heron is an object-oriented programming language for model driven architecture
  
  
  
  
    
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: 
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