Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sequencer-2-2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
epics-modules
sequencer-2-2
Commits
02cba80e
Commit
02cba80e
authored
12 years ago
by
benjamin.franksen
Browse files
Options
Downloads
Patches
Plain Diff
snc: removed stand-alone lexer test program
parent
1a32af4a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/snc/Makefile
+0
-6
0 additions, 6 deletions
src/snc/Makefile
src/snc/snl.re
+0
-24
0 additions, 24 deletions
src/snc/snl.re
with
0 additions
and
30 deletions
src/snc/Makefile
+
0
−
6
View file @
02cba80e
...
@@ -29,12 +29,6 @@ snc_SRCS += builtin.c # builtin constants and functions
...
@@ -29,12 +29,6 @@ snc_SRCS += builtin.c # builtin constants and functions
snc_LIBS
+=
Com
snc_LIBS
+=
Com
ifdef
LEXER_TEST
PROD_HOST
=
TESTPROD_HOST
=
lexer
USR_CFLAGS
=
-DTEST_LEXER
endif
# locally overwrite default value for this variable
# locally overwrite default value for this variable
INSTALL_DOC
=
$(
INSTALL_LOCATION
)
/documentation
INSTALL_DOC
=
$(
INSTALL_LOCATION
)
/documentation
DOCS
+=
bnf.inc
DOCS
+=
bnf.inc
...
...
This diff is collapsed.
Click to expand it.
src/snc/snl.re
+
0
−
24
View file @
02cba80e
...
@@ -437,28 +437,6 @@ c_code_line:
...
@@ -437,28 +437,6 @@ c_code_line:
DONE
;
/* dead code, only here to make compiler warning go away */
DONE
;
/* dead code, only here to make compiler warning go away */
}
}
#
ifdef
TEST_LEXER
void
report_loc
(
const
char
*
f
,
int
l
)
{
fprintf
(
stderr
,
"%s:%d: "
,
f
,
l
);
}
int
main
()
{
Scanner
s
;
int
tt
;
/* token type */
Token
tv
;
/* token value */
memset
(
&
s
,
0
,
sizeof
(
s
));
s
.
cur
=
fill
(
&
s
,
s
.
cur
);
s
.
line
=
1
;
while
(
(
tt
=
scan
(
&
s
,
&
tv
))
!=
EOI
)
{
printf
(
"%s:%d: %2d
\t
$%s$
\n
"
,
tv
.
file
,
tv
.
line
,
tt
,
tv
.
str
);
}
return
0
;
}
#
else
Expr
*
parse_program
(
const
char
*
src_file
)
Expr
*
parse_program
(
const
char
*
src_file
)
{
{
Scanner
s
;
Scanner
s
;
...
@@ -484,5 +462,3 @@ Expr *parse_program(const char *src_file)
...
@@ -484,5 +462,3 @@ Expr *parse_program(const char *src_file)
snlParserFree
(
parser
,
free
);
snlParserFree
(
parser
,
free
);
return
result
;
return
result
;
}
}
#
endif
/* TEST_LEXER */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment