projects
/
YACASL2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master'
[YACASL2.git]
/
test
/
unit
/
strip_casl2_comment
/
cmd.c
1
#include <stdio.h>
2
#include "token.h"
3
4
int main(){
5
char s[][50] = {
6
" LD GR1,GR2",
7
" LD GR1,GR2 ; CASL II comment",
8
" LD GR1,='#' ; CASL II comment",
9
" LD GR1,=';'",
10
" LD GR1,=''';'",
11
" LD GR1,=''';' ; CASL II comment",
12
};
13
14
for(size_t i = 0; i < sizeof(s) / sizeof(s[0]); i++) {
15
printf("%s::\n", strip_casl2_comment(s[i]));
16
}
17
return 0;
18
}