Skip to content
Snippets Groups Projects
  • Erwan Jahier's avatar
    79e85ff2
    Fix a bug when using -esa -en -2c on programs with assert · 79e85ff2
    Erwan Jahier authored
    Report by willie (cf mail of 8/10/2014 to get the file)
    
    file:/tmp/modes3x2.lus
    
    lus2lic -esa -en -2c /tmp/modes3x2.lus -n modes3x2
    
    But it gives an error of:
    Error. in file "/mnt/A/wsept/modes3x2_pre_orig_lus2lic_en_esa/modes3x2.lus",
    line 74, col 8 to 8, token '#': only one operator per equation is allowed
    (v04_0, v04_1).
    
    Which is the line:
    assert #(on_off, toggle);
    
    -----------------------------------------------------------------
    
    Actually, refuse programs that uses "#" or "nor" run with -esa and
    -2c|-exec
    
    That means that willie program is now rejected.
    
    Nevertheless, that change migth fix some other programs (that uses
    arrays, and used with -esa and -exec or -2c).
    79e85ff2
    History
    Fix a bug when using -esa -en -2c on programs with assert
    Erwan Jahier authored
    Report by willie (cf mail of 8/10/2014 to get the file)
    
    file:/tmp/modes3x2.lus
    
    lus2lic -esa -en -2c /tmp/modes3x2.lus -n modes3x2
    
    But it gives an error of:
    Error. in file "/mnt/A/wsept/modes3x2_pre_orig_lus2lic_en_esa/modes3x2.lus",
    line 74, col 8 to 8, token '#': only one operator per equation is allowed
    (v04_0, v04_1).
    
    Which is the line:
    assert #(on_off, toggle);
    
    -----------------------------------------------------------------
    
    Actually, refuse programs that uses "#" or "nor" run with -esa and
    -2c|-exec
    
    That means that willie program is now rejected.
    
    Nevertheless, that change migth fix some other programs (that uses
    arrays, and used with -esa and -exec or -2c).