Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
lexer: Implement workspace <number> "<name>"
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Sep 19, 2009
1 parent 0ed2d62 commit 0e8b87e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/cfgparse.y
Expand Up @@ -257,6 +257,16 @@ workspace:
workspace_set_name(&(workspaces[ws_num - 1]), $<string>8);
}
}
| TOKWORKSPACE WHITESPACE NUMBER workspace_name
{
int ws_num = $<number>3;
if (ws_num < 1 || ws_num > 10) {
LOG("Invalid workspace assignment, workspace number %d out of range\n", ws_num);
} else {
if ($<string>4 != NULL)
workspace_set_name(&(workspaces[ws_num - 1]), $<string>4);
}
}
;

workspace_name:
Expand Down

0 comments on commit 0e8b87e

Please sign in to comment.