-
每次只能输入一个变量,且 read 后面不要带括号
eg:
read b;
-
使用
if
或while
或for
时末尾需跟分号, 且圆括号里面的条件必须写成i > j * j
, 不能写成j * j < i
, 也就是说运算符(不包括 || 和 &&)左边不能为算术式,且左右两边都不能为 true 或 falseeg:
while(i <= n) { ans = ans * i; i++; }; if(i <= j * j) { write j; }; if(i <= j * j) { write j; } else { write i; }; if(i) write i;;
-
In Mac OS X, set test files'
Line Endings
to Unix not Mac OS 9 with Sublime Text 2 -
if(a)
is supported now -
允许函数嵌套 😥,允许函数内部定义已使用过的变量名(覆盖以前的值),未检测变量名重复, 乘法溢出未检测
-
Notifications
You must be signed in to change notification settings - Fork 0
A simple C like compiler, using Lex & Yacc
License
whyisyoung/my_toy_cx_compiler
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple C like compiler, using Lex & Yacc
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published