Ignore:
Timestamp:
04/28/23 23:44:31 (13 months ago)
Author:
Maciej Komosinski
Message:

Fixed a bug where an f4_Node tree that resulted from an f4 genotype that was not properly/completely parsed due to some error would still be used to try growing an organism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/f4_general.h

    r1227 r1228  
    5151 * @return 1 if end of string was reached, or position of found character in sequence
    5252 */
    53 int scanrec(const char* s, unsigned int slen, char stopchar);
     53int scanRecur(const char* s, int slen, char stopchar);
    5454
    5555
     
    475475/**
    476476 * The main function for converting a string of f4 encoding to a tree structure. Prepares
    477  * f4_Node root of tree and runs f4_processrec function for it.
     477 * f4_Node root of tree and runs f4_processRecur function for it.
    478478 * @param geno the string representing an f4 genotype
    479479 * @return a pointer to the f4_Node object representing the f4 tree root
    480480 */
    481 f4_Node* f4_processtree(const char *geno);
     481//f4_Node* f4_processTree(const char *geno);
    482482
    483483/**
     
    485485 * a tree of f4_Node objects. This method extracts each potentially functional element
    486486 * of a genotype string to a separate f4_Nodes. When the branching character '<' occurs,
    487  * f4_processrec is deployed for the latest f4_Node element. This method does not
     487 * f4_processRecur is deployed for the latest f4_Node element. This method does not
    488488 * analyse the genotype semantically, it only checks if the syntax is proper. The only
    489489 * semantic aspect is neuron class name extraction, where the GenoOperators
     
    494494 * @return 0 if processing was successful, otherwise returns the position of an error in the genotype
    495495 */
    496 int f4_processrec(const char *genot, unsigned pos0, f4_Node *parent);
     496int f4_processRecur(const char *genot, unsigned pos0, f4_Node *parent);
    497497
    498498/**
Note: See TracChangeset for help on using the changeset viewer.