helplibbf - Support: sr #109485, Cannot use arrays in c-to-bf

 
 

sr #109485: Cannot use arrays in c-to-bf

Submitted by:  None
Submitted on:  Sun 01 Apr 2018 06:25:41 AM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  5 - Blocker Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 01 Apr 2018 06:25:41 AM UTC, original submission:

I seem to be unable use arrays.

Declaring an array inside of a function like the following:
int main() {
int arr[3];
arr[1] = 1;
}

yields: fatal: libbf_c_to_bf.c, at line 1290 : Invalid declaration at line 4 of source file

If I move the declaration in the global scope, I get a different error:
int arr[3];
int main() {
arr[1] = 1;
}

and the error: fatal: libbf_c_to_bf.c, at line 1127 : cond "builder.operandList != NULL && builder.operandList->next == NULL" failed at line 3 of source file

Is there a way to use arrays at all?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3