[Nice-commit] Nice/src/bossa/parser Parser.jj,1.207,1.208
Brought to you by:
bonniot
From: <ar...@us...> - 2003-09-15 22:29:26
|
Update of /cvsroot/nice/Nice/src/bossa/parser In directory sc8-pr-cvs1:/tmp/cvs-serv22551/F:/nice/src/bossa/parser Modified Files: Parser.jj Log Message: Implemented the difference between classes and interface when implementing an abstract interface. Index: Parser.jj =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v retrieving revision 1.207 retrieving revision 1.208 diff -C2 -d -r1.207 -r1.208 *** Parser.jj 11 Sep 2003 20:50:27 -0000 1.207 --- Parser.jj 15 Sep 2003 22:29:21 -0000 1.208 *************** *** 1065,1074 **** LocatedString className, interfaceName; boolean _finally = false; } { ! "class" className=fullyQualifiedName() [ "finally" { _finally = true; } ] "implements" interfaceName=ident() ";" ! { return new AbstractInterfaceImplementation(className, interfaceName, _finally); } } --- 1065,1078 ---- LocatedString className, interfaceName; boolean _finally = false; + boolean _interface = false; } { ! ( "class" | "interface" {_interface = true;} ) ! className=fullyQualifiedName() [ "finally" { _finally = true; } ] "implements" interfaceName=ident() ";" ! { return new AbstractInterfaceImplementation(className, interfaceName, ! _finally, _interface); ! } } *************** *** 1423,1427 **** res=interfaceDefinition() | ! LOOKAHEAD( "class" fullyQualifiedName() ) res=abstractInterfaceImplementation() | --- 1427,1431 ---- res=interfaceDefinition() | ! LOOKAHEAD( ("class" | "interface") fullyQualifiedName() ) res=abstractInterfaceImplementation() | |