Opened 15 years ago

Closed 15 years ago

#284 closed enhancement (fixed)

Grammar ignore

Reported by: Stephen Siegel Owned by: zirkel
Priority: major Milestone: 1.1
Component: front Version: 1.1
Keywords: grammar ignore printf static const Cc:

Description

Tell grammar to ignore "L", "U", "UL", and "F" following numeric literals.

Ignore function prototypes (unless they are abstract or system functions).

Ignore "static", "const".

Ignore printf's. (Since there are function calls, it might be OK to parse them and then just ignore them in the TreeParser or ModelBuilder.)

Change History (5)

comment:1 by zirkel, 15 years ago

Status: newaccepted

Thought this would be done by now, but ignoring the numeric literal types is proving more difficult than it seems. Continuing to work on it.

comment:2 by zirkel, 15 years ago

Ignoring the suffixes for numeric literals is working. Ignoring "static" and "const" should also be working, but I haven't written a test case yet.

comment:3 by zirkel, 15 years ago

Is it acceptable to have printf's replaced with noops in the model?

comment:4 by Stephen Siegel, 15 years ago

Sure printf's can be replaced with noops (for now).

comment:5 by zirkel, 15 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.