我不断收到错误:
In HDL file home/barnacles/nand2tetris/projects/01/And.hdl,Line 18, ',', or ')' are expected
我继续检查语法,它是正确的,我不知道什么是错的。
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/01/And.hdl
/**
* And gate:
* out = 1 if (a == 1 and b == 1)
* 0 otherwise
*/
CHIP And {
IN a, b;
OUT out;
PARTS:
// Put your code here:
Nand(a=a, b=b, out=nand_1);
Not(in=nand_1, out=out);
}
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/01/And.hdl
/**
* And gate:
* out = 1 if (a == 1 and b == 1)
* 0 otherwise
*/
CHIP And {
IN a, b;
OUT out;
PARTS:
// Put your code here:
Nand(a=a, b=b, out=nand_1);
Nand(a=nand_1, b=nand_1, out=out);
}
我知道更改正在保存。我也试过重新安装