Changeset 3386 for devel-tools/trunk
- Timestamp:
- Feb 7, 2008, 3:17:24 PM (13 years ago)
- Location:
- devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstAlt.java
r3329 r3386 17 17 public AstAlt (SrcPosition pos, FailMode failMode, AstSentence[] sentenceList) { 18 18 super(pos); 19 assert failMode != null && sentenceList != null; 19 20 this.failMode = failMode; 20 21 this.sentenceList = sentenceList; -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstCall.java
r3376 r3386 4 4 5 5 public final class AstCall extends AstTerm implements IHoverInfo { 6 /** May be <code>null</code>! */ 6 7 public final AstName name; 7 8 public final AstExp arg; 9 /** May be <code>null</code>! */ 8 10 public AstFuncDecl funcDecl = null; 9 11 10 12 public AstCall (SrcPosition pos, AstName name, AstExp arg) { 11 13 super(pos); 14 assert arg != null; 12 15 this.name = name; 13 16 this.arg = arg; -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstConstBinding.java
r3376 r3386 8 8 public AstConstBinding (SrcPosition pos, AstName name, boolean isPublic, AstExp exp) { 9 9 super(pos, name, isPublic); 10 assert exp != null; 10 11 this.exp = exp; 11 12 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstCut.java
r3364 r3386 4 4 5 5 public final class AstCut extends AstStatement { 6 /** May be <code>null</code>! */ 6 7 public AstFence fence = null; 7 8 -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstDecl.java
r3376 r3386 6 6 7 7 public abstract class AstDecl extends AstTopNode implements IHoverInfo { 8 /** May be <code>null</code>! */ 8 9 public final AstName name; 9 10 public final boolean isPublic; 10 public String module; 11 /** May be <code>null</code>! */ 12 public String module = null; 13 /** May be <code>null</code>! */ 11 14 public ArrayList<AstName> uses = null; 12 15 … … 18 21 19 22 public String getQualifiedName () { 20 if (name == null )23 if (name == null || module == null) 21 24 return null; 22 return (module != null ? module + "." : "")+ name.identifier;25 return module + "." + name.identifier; 23 26 } 24 27 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstError.java
r3329 r3386 8 8 public AstError (SrcPosition pos, AstSentence sentence) { 9 9 super(pos); 10 assert sentence != null; 10 11 this.sentence = sentence; 11 12 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstFence.java
r3364 r3386 6 6 7 7 public final class AstFence extends AstStatement { 8 /** May be <code>null</code>! */ 8 9 public ArrayList<AstNode> uses = null; 9 10 -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstFormat.java
r3329 r3386 8 8 public AstFormat (SrcPosition pos, AstExp exp) { 9 9 super(pos); 10 assert exp != null; 10 11 this.exp = exp; 11 12 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstFuncDecl.java
r3376 r3386 15 15 public final AstExp inFormat; 16 16 public final AstExp outFormat; 17 /** May be <code>null</code>! */ 17 18 public AstTopNode funcDef = null; 18 19 … … 20 21 AstExp outFormat) { 21 22 super(pos, name, isPublic); 23 assert retMode != null && inFormat != null && outFormat != null; 22 24 this.retMode = retMode; 23 25 this.inFormat = inFormat; -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstFuncDef.java
r3376 r3386 3 3 import org.refal.plus.rfpdt.comp.SrcPosition; 4 4 5 public final class AstFuncDef extends AstTopNode implements IHoverInfo 5 public final class AstFuncDef extends AstTopNode implements IHoverInfo { 6 6 public final AstName name; 7 7 public final AstSentence body; 8 /** May be <code>null</code>! */ 8 9 public AstFuncDecl funcDecl = null; 9 10 10 11 public AstFuncDef (SrcPosition pos, AstName name, AstSentence body) { 11 12 super(pos); 13 assert name != null && body != null; 12 14 this.name = name; 13 15 this.body = body; -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstImplem.java
r3332 r3386 4 4 5 5 public final class AstImplem extends AstNode { 6 /** May be <code>null</code>! */ 6 7 public final AstName astModuleName; 7 8 public final AstUse[] useList; 8 9 public final AstTopNode[] topNodeList; 9 public String moduleName; 10 /** May be <code>null</code>! */ 11 public String moduleName = null; 10 12 11 13 public AstImplem (SrcPosition pos, AstName moduleName, AstUse[] useList, AstTopNode[] topNodeList) { 12 14 super(pos); 15 assert useList != null && topNodeList != null; 13 16 this.astModuleName = moduleName; 14 17 this.useList = useList; -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstInterf.java
r3332 r3386 4 4 5 5 public final class AstInterf extends AstNode { 6 /** May be <code>null</code>! */ 6 7 public final AstName moduleName; 7 8 public final AstTopNode[] topNodeList; … … 9 10 public AstInterf (SrcPosition pos, AstName moduleName, AstTopNode[] topNodeList) { 10 11 super(pos); 12 assert topNodeList != null; 11 13 this.moduleName = moduleName; 12 14 this.topNodeList = topNodeList; -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstIter.java
r3329 r3386 9 9 public AstIter (SrcPosition pos, AstSentence sentence, AstExp target) { 10 10 super(pos); 11 assert sentence != null && target != null; 11 12 this.sentence = sentence; 12 13 this.target = target; -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstName.java
r3364 r3386 8 8 public AstName (SrcPosition pos, String identifier) { 9 9 super(pos); 10 assert identifier != null; 10 11 this.identifier = identifier; 11 12 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstNative.java
r3332 r3386 5 5 public final class AstNative extends AstTopNode { 6 6 public final AstName left; 7 /** May be <code>null</code>! */ 7 8 public final AstName right; 8 9 public boolean isNameAtLeft = true; 10 /** May be <code>null</code>! */ 9 11 public AstFuncDecl funcDecl = null; 10 12 11 13 public AstNative (SrcPosition pos, AstName left, AstName right) { 12 14 super(pos); 15 assert left != null; 13 16 this.left = left; 14 17 this.right = right; -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstNode.java
r3332 r3386 5 5 public abstract class AstNode { 6 6 public final SrcPosition pos; 7 7 8 8 protected AstNode (SrcPosition pos) { 9 assert pos !=null;9 assert pos != null; 10 10 this.pos = pos; 11 11 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstNot.java
r3329 r3386 8 8 public AstNot (SrcPosition pos, AstSentence sentence) { 9 9 super(pos); 10 assert sentence != null; 10 11 this.sentence = sentence; 11 12 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstNumberSymbol.java
r3375 r3386 10 10 public AstNumberSymbol (SrcPosition pos, BigInteger bigInteger) { 11 11 super(pos); 12 assert bigInteger != null; 12 13 this.bigInteger = bigInteger; 13 14 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstObjDecl.java
r3376 r3386 12 12 public AstObjDecl (SrcPosition pos, ObjKind kind, AstName name, boolean isPublic) { 13 13 super(pos, name, isPublic); 14 assert kind != null; 14 15 this.kind = kind; 15 16 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstParen.java
r3375 r3386 8 8 public AstParen (SrcPosition pos, AstExp exp) { 9 9 super(pos); 10 assert exp != null; 10 11 this.exp = exp; 11 12 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstPattern.java
r3329 r3386 17 17 public AstPattern (SrcPosition pos, MatchDir dir, AstExp exp) { 18 18 super(pos); 19 assert dir != null && exp != null; 19 20 this.dir = dir; 20 21 this.exp = exp; -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstRef.java
r3376 r3386 4 4 5 5 public final class AstRef extends AstTerm implements IHoverInfo { 6 /** May be <code>null</code>! */ 6 7 public final AstName name; 8 /** May be <code>null</code>! */ 7 9 public AstDecl decl = null; 8 10 -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstResult.java
r3329 r3386 8 8 public AstResult (SrcPosition pos, AstExp exp) { 9 9 super(pos); 10 assert exp != null; 10 11 this.exp = exp; 11 12 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstTrap.java
r3329 r3386 7 7 public final AstSentence catchSentence; 8 8 9 public AstTrap (SrcPosition pos, AstSentence sentence, AstSentence catchSentance) {9 public AstTrap (SrcPosition pos, AstSentence trySentence, AstSentence catchSentance) { 10 10 super(pos); 11 this.trySentence = sentence; 11 assert trySentence != null && catchSentance != null; 12 this.trySentence = trySentence; 12 13 this.catchSentence = catchSentance; 13 14 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstUse.java
r3332 r3386 5 5 public final class AstUse extends AstNode { 6 6 public final AstName name; 7 /** May be <code>null</code>! */ 7 8 public AstInterf interf = null; 8 9 9 10 public AstUse (SrcPosition pos, AstName name) { 10 11 super(pos); 12 assert name != null; 11 13 this.name = name; 12 14 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstVar.java
r3364 r3386 26 26 27 27 public final VarType type; 28 /** May be <code>null</code>! */ 28 29 public final AstName name; 30 /** May be <code>null</code>! */ 29 31 public AstVar varDefinition = null; 32 /** May be <code>null</code>! */ 30 33 public ArrayList<AstVar> varUses = null; 31 34 32 35 public AstVar (SrcPosition pos, VarType type, AstName name) { 33 36 super(pos); 37 assert type != null; 34 38 this.type = type; 35 39 this.name = name; -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/ast/AstWordSymbol.java
r3364 r3386 8 8 public AstWordSymbol (SrcPosition pos, String word) { 9 9 super(pos); 10 assert word != null; 10 11 this.word = word; 11 12 } -
devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/parse/RfpParser.java
r3353 r3386 118 118 119 119 public final class RfpParser { 120 /** May return <code>null</code>! */ 120 121 public static AstInterf parseInterf (String moduleName, Reader reader, MsgHandler msgHandler) { 121 122 RfpResource rfpResource = RfpResource.interf(moduleName); … … 130 131 } 131 132 133 /** May return <code>null</code>! */ 132 134 public static AstImplem parseImplem (String moduleName, Reader reader, MsgHandler msgHandler) { 133 135 RfpResource rfpResource = RfpResource.implem(moduleName); … … 235 237 // MODULE name SC 236 238 239 /** May return <code>null</code>! */ 237 240 private AstName module_name (long ftk) { 238 241 if (!acceptWOError(MODULE, ftk)) … … 412 415 accept(EQL, s_exp | ftk); 413 416 AstExp outFormat = exp(ftk); 414 list.add(new AstFuncDecl(SrcPosition.fromToInclusive(start, outFormat.pos), astName, isPublic, retMode, inFormat, outFormat)); 417 list.add(new AstFuncDecl(SrcPosition.fromToInclusive(start, outFormat.pos), astName, isPublic, retMode, 418 inFormat, outFormat)); 415 419 } 416 420 … … 865 869 astTerm = new AstCall(pos, astName, astExp); 866 870 } else { 867 assert true;871 assert false; 868 872 astTerm = null; 869 873 } … … 889 893 astSymbol = new AstNumberSymbol(tkPos, scanner.tkBigInteger); 890 894 else { 891 assert true;895 assert false; 892 896 astSymbol = null; 893 897 } … … 913 917 // WORD 914 918 915 /** 916 * May return <code>null</code>! 917 */ 918 919 /** May return <code>null</code>! */ 919 920 private AstName name (long ftk, MsgCode msgCode) { 920 921 if (sync(WORD, ftk)) {
Note: See TracChangeset
for help on using the changeset viewer.