Can't figure out syntax error --

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't figure out syntax error --

bigmit37
This post was updated on .
I keep getting an error that line 20 needs a comma or a bracket.
Line  20 is this line :  

Not(in = sel[2], out = out_1);


EDIT: It seems you can't use underscore.
Reply | Threaded
Open this post in threaded view
|

Re: Can't figure out syntax error --

cadet1620
Administrator
"_" is not a legal character in pin/wire names.  They must start with "a-zA-Z" and can only contain "a-zA-Z0-9".  (The parser encountered the "_" and began looking for the next token.)

"out = e,f,g,h"  DMux4Way does not have a pin named "out" so you can't connect to it.  (You already have the correct output connections, "a= e, b=f, c=g, d=h".)

Hint: your Not and 2 Ands are implementing a DMux.

--Mark
 
Reply | Threaded
Open this post in threaded view
|

Re: Can't figure out syntax error --

bigmit37
Ah! I see.

As for you hint, I have to go back and recheck!


Thank you.