I do not know whether this is helpful, but report this for any occasion.
For the program of kind
  ...
  parseUMons(R : SetCategory, lexemes : LexList) : DPair Any  ==

      empty? lexemes => error "parseUMons(R,  )"
      lx   := first lexemes
      lexs := rest  lexemes
      lx = "]" =>                               
               empty? lexs => error ".."
               rPar    := first lexs
               remLexs := coerce(rest lexs) $ANY1(LexList)
               rPar ~= ")" => error "parseUMons(R, ] _ ) :
                                     no closing ) after monimial list."
                [coerce([]) $ANY1(List Pair(R, Integer)),  remLexs]
  ...

(having wrong indentation in the last line)  

the compiler returns the following full report 
(which I format a bit and remove `Time:' ) :

-------------------
   Compiling FriCAS source code from file 
      /home/mechvel/ghc/axiomInterface/fromA-aim/dParse.spad using old 
      system compiler.
   DPARSE1 abbreviates package DParse1 

   initializing NRLIB DPARSE1 for DParse1 
   compiling into NRLIB DPARSE1 
   processing macro definition ANY1 ==> AnyFunctions1 
   importing DChar1
   compiling exported dParse : (Union(SetCategory,failed),String) -> Any
   compiling exported dParse : String -> Any
   compiling exported dParseL : List String -> List Any
   compiling exported dParseL : (Union(SetCategory,failed),List String) ->
                                                               List Any
   compiling exported parseUMon : (SetCategory,List String) -> List Any

   compiling exported parseUMons : (SetCategory,List String) -> List Any
   Internal Error
   Unexpected error in call to system function canReturn 
-------------------

-- no info about the line number, etc.
Probably `error' is a system call (?)
But if  parseUMons  has many lines and many system calls, then it is 
difficult to find which one is responsible.

Regards,

------
Sergei
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to