Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [vjet-dev] [wtp-dev] JSDT - what is the Javascript parser implemented with?

Hi John,

I believe jikespg is used the same parser generater that is used by JDT. 


One note about VJET parser in comparison to JSDT. VJET improved the JSDT parser by doing the following:

1. Removed any non AST parsing related task. Type inferencing, code analysis is deferred to later visitors.
2. Fixed the issues with object literal function/property recovery by balancing tokens.
3. There are minimum dependencies outside just AST parsing. Many of the eclipse dependencies have been removed.
4. There are 3 views which are very helpful for inspecting the model.
AST view - view of the AST model before and after recovery.
ScriptUnit view - view of the JST where higher level types are constructed.
TypeSpace view - View of the typespace by group.

In relation to the implicit semicolon insertion rules where are you trying to fix this? Do you have some cases that are broken that you tried in VJET? We allow for users to not add semis and AST is constructed.

On Jan 16, 2013, at 7:27 AM, Christopher Jaun <cmjaun@xxxxxxxxxx> wrote:

JSDT uses the same mechanism as JDT to generate the parser...

http://www.eclipse.org/jdt/core/howto/generate%20parser/generateParser.html

Thanks,
Chris



<graycol.gif>John Peberdy ---01/15/2013 06:19:20 PM---Hi,

<ecblank.gif>
To
<ecblank.gif>
<ecblank.gif>
cc
<ecblank.gif>
<ecblank.gif>
Subject
<ecblank.gif>
    [wtp-dev] JSDT - what is the _javascript_ parser implemented with?
<ecblank.gif><ecblank.gif>

Hi,

I'd like to add support to JSDT for _javascript_'s implicit semicolon insertion rules. In org.eclipse.wst.jsdt.core I noticed there is a .g grammar file. As well there are .rsc files which seem to be serialized state of a parser generator.

Does anyone know which tool and version of it is used to generate these .rsc files from the .g file?


I checked VJET and it appears to at least have the same bugs as JSDT's editor in this regard so I'm assuming it doesn't have an improved parser.


Thanks
John_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev

_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev

GIF image


Back to the top