Anonymous | Login | 2024-12-02 07:08 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||||||||
0001841 | [Issue 8 drafts] Shell and Utilities | Editorial | Error | 2024-07-20 04:11 | 2024-07-25 16:23 | ||||||||
Reporter | lanodan | View Status | public | ||||||||||
Assigned To | |||||||||||||
Priority | normal | Resolution | Accepted | ||||||||||
Status | Resolved | Product Version | Draft 4.1 | ||||||||||
Name | Haelwenn Monnier | ||||||||||||
Organization | |||||||||||||
User Reference | |||||||||||||
Section | lex | ||||||||||||
Page Number | 3045-3046 | ||||||||||||
Line Number | 102063-102097 | ||||||||||||
Final Accepted Text | |||||||||||||
Summary | 0001841: Example given for lex(1) has rules lacking mandatory action | ||||||||||||
Description |
As put lines 101969-101970: > However, the absence of an action shall not be valid, and the action lex takes in such a condition > is undefined. While the noop one-line comment and white space actions given in the example lines 102063-102097 lack an action. |
||||||||||||
Desired Action |
Add ; or {} as noop actions, like so: ``` --- posix8-example.l 2024-07-20 05:58:59.040261956 +0200 +++ posix8-example-fix.l 2024-07-20 06:09:40.319365549 +0200 @@ -20,8 +20,8 @@ } {ID} printf("An identifier: %s\n", yytext); "+"|"-"|"*"|"/" printf("An operator: %s\n", yytext); -"{"[^}\n]*"}" /* Eat up one-line comments. */ -[ \t\n]+ /* Eat up white space. */ +"{"[^}\n]*"}" ; /* Eat up one-line comments. */ +[ \t\n]+ ; /* Eat up white space. */ . printf("Unrecognized character: %s\n", yytext); %% int main(int argc, char *argv[]) ``` |
||||||||||||
Tags | tc1-2024 | ||||||||||||
Attached Files | |||||||||||||
|
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |