[nbdev] Cannot type quotes after using tutorial "JavaCC Lexer Generator Integration Tutorial for NetBeans Platform 7.2"

  • From: "raamee" < >
  • To:
  • Subject: [nbdev] Cannot type quotes after using tutorial "JavaCC Lexer Generator Integration Tutorial for NetBeans Platform 7.2"
  • Date: Mon, 07 Jan 2013 07:24:28 -0500

First, thanks for pointing out the source code to me. I missed that part.

I've checked out the source code project rev 445 (Jan 1, 2013) for NetBeans 
7.2

After running the project and creating a new SJ file, I still cannot write 
single\double quotes.

Since I am assuming that this project works for others, I am attaching the 
error I got when typing a (') in an empty line.


I am using NetBeans IDE 7.2 (Build 201207171143) 
w/ java version "1.7.0_09"


Code:

org.simplejava.jcclexer.TokenMgrError: Lexical error at line 0, column 0.  
Encountered: "\n" (10), after : "\'"
        at 
org.simplejava.jcclexer.JavaParserTokenManager.getNextToken(JavaParserTokenManager.java:2005)
        at org.simplejava.lexer.SJLexer.nextToken(SJLexer.java:22)
        at 
org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:193)
        at 
org.netbeans.lib.lexer.inc.TokenListUpdater.relex(TokenListUpdater.java:622)
        at 
org.netbeans.lib.lexer.inc.TokenListUpdater.updateRegular(TokenListUpdater.java:279)
        at 
org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:348)
        at 
org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:223)
        at 
org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.updateImpl(TokenHierarchyUpdate.java:195)
        at 
org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.update(TokenHierarchyUpdate.java:133)
        at 
org.netbeans.lib.lexer.TokenHierarchyOperation.textModified(TokenHierarchyOperation.java:555)
        at 
org.netbeans.spi.lexer.TokenHierarchyControl.textModified(TokenHierarchyControl.java:96)
        at 
org.netbeans.lib.lexer.inc.DocumentInput.textModified(DocumentInput.java:154)
        at 
org.netbeans.lib.lexer.inc.DocumentInput.insertUpdate(DocumentInput.java:143)
        at 
org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:85)
        at 
javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:202)
        at 
org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:1577)
        at 
org.netbeans.editor.BaseDocument.handleInsertString(BaseDocument.java:825)
        at 
org.netbeans.editor.BaseDocument$FilterBypassImpl.insertString(BaseDocument.java:2408)
        at 
javax.swing.text.DocumentFilter.insertString(DocumentFilter.java:100)
        at 
org.openide.text.CloneableEditorSupport$DocFilter.insertString(CloneableEditorSupport.java:3011)
        at 
org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:763)
        at 
org.netbeans.editor.BaseKit$DefaultKeyTypedAction.insertString(BaseKit.java:1241)
        at 
org.netbeans.modules.csl.core.CslEditorKit$GsfDefaultKeyTypedAction.insertString(CslEditorKit.java:267)
        at 
org.netbeans.editor.BaseKit$DefaultKeyTypedAction.performTextInsertion(BaseKit.java:1307)
        at 
org.netbeans.editor.BaseKit$DefaultKeyTypedAction.access$100(BaseKit.java:1073)
        at 
org.netbeans.editor.BaseKit$DefaultKeyTypedAction$2.run(BaseKit.java:1175)
        at 
org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:347)
        at 
org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:1151)
        at 
org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(ExtKit.java:1081)
        at 
org.netbeans.modules.csl.core.CslEditorKit$GsfDefaultKeyTypedAction.actionPerformed(CslEditorKit.java:241)
        at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339)
        at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1664)
        at javax.swing.JComponent.processKeyBinding(JComponent.java:2879)
        at javax.swing.JComponent.processKeyBindings(JComponent.java:2926)
        at javax.swing.JComponent.processKeyEvent(JComponent.java:2842)
        at java.awt.Component.processEvent(Component.java:6282)
        at java.awt.Container.processEvent(Container.java:2229)
        at java.awt.Component.dispatchEventImpl(Component.java:4861)
        at java.awt.Container.dispatchEventImpl(Container.java:2287)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at 
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895)
        at 
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762)
        at 
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027)
        at 
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899)
        at 
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727)
        at java.awt.Component.dispatchEventImpl(Component.java:4731)
        at java.awt.Container.dispatchEventImpl(Container.java:2287)
        at java.awt.Window.dispatchEventImpl(Window.java:2719)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:682)
        at java.awt.EventQueue$3.run(EventQueue.java:680)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at 
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:696)
        at java.awt.EventQueue$4.run(EventQueue.java:694)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
        at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
[catch] at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
        at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)










[nbdev] Cannot type quotes after using tutorial "JavaCC Lexer Generator Integration Tutorial for NetBeans Platform 7.2"

raamee 01/07/2013

[nbdev] Re: Cannot type quotes after using tutorial "JavaCC Lexer Generator Integration Tutorial for NetBeans Platform 7.2"

Geertjan Wielenga 01/07/2013

[nbdev] Cannot type quotes after using tutorial "JavaCC Lexer Generator Integration Tutorial for NetBeans Platform 7.2"

raamee 01/07/2013

[nbdev] Re: Cannot type quotes after using tutorial "JavaCC Lexer Generator Integration Tutorial for NetBeans Platform 7.2"

Geertjan Wielenga 01/07/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close