--- /dev/null
+include ../Define.mk
+include ../Test.mk
+
+CC := gcc
+CFLAGS := -Wall -Wextra
+
+.INTERMEDIATE: $(CMD_FILE)
+
+CMDSRC_FILE := cmd.c
+TARGETDIR := ../../../src
+INCLUDEDIR := ../../../include
+TESTTARGET_FILES := $(TARGETDIR)/token.c $(TARGETDIR)/cmem.c $(TARGETDIR)/cerr.c # Set test target files
+
+$(CMD_FILE): $(CMDSRC_FILE) $(TESTTARGET_FILES)
+ $(CC) $(CFLAGS) -I $(INCLUDEDIR) -o $@ $^
+
+clean_cmd:
+ @rm -rf cmd.dSYM cmd
+
+clean: clean_cmd
--- /dev/null
+#include <stdio.h>
+#include "token.h"
+
+int main(){
+ char s[][50] = {
+ " LD GR1,GR2",
+ " LD GR1,GR2 ; CASL II comment",
+ " LD GR1,='#' ; CASL II comment",
+ " LD GR1,=';'",
+ " LD GR1,=''';'",
+ " LD GR1,=''';' ; CASL II comment",
+ };
+
+ for(size_t i = 0; i < sizeof(s) / sizeof(s[0]); i++) {
+ printf("%s::\n", strip_casl2_comment(s[i]));
+ }
+ return 0;
+}