Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coenen, Joachim
Frida
Commits
12386b5f
Commit
12386b5f
authored
16 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
Fehlerbehandlung in xax verbessert;
dafür muss eine Warnung in Kauf genommen werden.
parent
4907a9a0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xax.y
+2
-8
2 additions, 8 deletions
src/xax.y
with
2 additions
and
8 deletions
src/xax.y
+
2
−
8
View file @
12386b5f
...
...
@@ -28,6 +28,7 @@ vector<CTree*>* vtree;
%debug
%{
#define YYERROR_VERBOSE 1
#define YYPARSE_PARAM T /* used via xaxparse( CTree *T ) */
int xaxerror(const char*); /* provided by calling code (expr.cpp, ...) */
int xaxlex(YYSTYPE *xaxlval); /* created by lex.l */
...
...
@@ -60,14 +61,7 @@ int xaxlex(YYSTYPE *xaxlval); /* created by lex.l */
%%
input:
/* empty */ { printf("pars got empty line\n"); }
| line
;
line:
exp END { *((CTree*)T) = *$1;
delete $1;
return 0; }
exp END { *((CTree*)T) = *$1; delete $1; return 0; }
| error { yyerrok; return -1; }
;
...
...
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