Opened 16 years ago
Closed 16 years ago
#221 closed enhancement (fixed)
Cannot declare multiple variables on one line in .mmp
| Reported by: | dfix | Owned by: | zirkel |
|---|---|---|---|
| Priority: | minor | Milestone: | Release 1.0 |
| Component: | front | Version: | 1.0 |
| Keywords: | parser, declaration, .mmp | Cc: |
Description
It seems that the parser can't handle the declaration of multiple variables on a single line.
Something like:
typedef struct Node{
struct Node* next;
int value;
} Node;
void main () {
int x, y, z;
Node a;
Node* p;
assert a.value == 4;
}
results in:
line 10:1 required (...)+ loop did not match anything at input 'int'
line 10:6 mismatched input ',' expecting LPAREN
line 10:9 extraneous input ',' expecting IDENTIFIER
line 11:7 mismatched input ';' expecting LPAREN
line 12:5 extraneous input '*' expecting IDENTIFIER
line 13:9 extraneous input '.' expecting IDENTIFIER
examples/linkedList/linkedListSimple.mmp parsed unsuccessfully.
Change History (3)
comment:1 by , 16 years ago
| Component: | Administration → front |
|---|---|
| Owner: | set to |
comment:2 by , 16 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → accepted |
comment:3 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
