This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 80374 - *Code Model - APT* provide token stream for file
Summary: *Code Model - APT* provide token stream for file
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks: 80372
  Show dependency tree
 
Reported: 2006-07-16 20:45 UTC by Vladimir Voskresensky
Modified: 2008-01-18 14:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2006-07-16 20:45:59 UTC
Need to provide APT-specific lexing of the file
Comment 1 Vladimir Voskresensky 2006-07-16 21:00:40 UTC
initial commit
RCS file:
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/TokenStreamBuilder.java,v
done
Checking in TokenStreamBuilder.java;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/TokenStreamBuilder.java,v
 <--  TokenStreamBuilder.java
new revision: 1.1.2.1; previous revision: 1.1
done
Comment 2 Vladimir Voskresensky 2006-07-16 21:07:10 UTC
updated lexer
cvs log:
Checking in aptlexer.g;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/aptlexer.g,v
 <--  aptlexer.g
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Comment 3 Vladimir Voskresensky 2006-07-16 21:27:44 UTC
 - renamed TokenStreamBuilder to APTTokenStreamBuilder

cvs log:
Removing TokenStreamBuilder.java;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/TokenStreamBuilder.java,v
 <--  TokenStreamBuilder.java
new revision: delete; previous revision: 1.1.2.1
done
RCS file:
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/APTTokenStreamBuilder.java,v
done
Checking in APTTokenStreamBuilder.java;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/APTTokenStreamBuilder.java,v
 <--  APTTokenStreamBuilder.java
new revision: 1.1.2.1; previous revision: 1.1
done
Comment 4 Vladimir Voskresensky 2006-07-17 17:52:36 UTC
provide token stream using lexer. No selector yet.

cvs log:
Checking in APTTokenStreamBuilder.java;
/cvs/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/apt/impl/support/Attic/APTTokenStreamBuilder.java,v
 <--  APTTokenStreamBuilder.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Comment 5 Vladimir Voskresensky 2006-08-04 05:58:41 UTC
remark. We need to support restoring after everything in lexer.
i.e.
#if 0
        anything could be here
        /* except not finished comment
*/ and what about // #endif
any #endif ideas? #include?
#endif
Comment 6 Vladimir Voskresensky 2006-08-12 11:21:16 UTC
expanding works,
need additional efforts to handle ## and # operations by taking into
consideration the whitespaces between operated tokens.
Help doc: http://www.csci.csusb.edu/dick/c++std/cd2/cpp.html
Comment 7 Vladimir Voskresensky 2007-08-30 16:31:53 UTC
fixed long time ago