Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / VB Syntax / July 2008



Tip: Looking for answers? Try searching our database.

Javacc VB.net grammar problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kishore - 22 Jul 2008 09:43 GMT
Hi All;

I am new to javacc but I am working on writing VB.Net grammar for
javacc and while parsing given sorce code the parser generates some
errors like:

       Try

           conn.Open()

           ExchangeRate = CType(cmd.ExecuteScalar(), Decimal)

       Finally

           conn.Close()

       End Try

-----------------Generated
Error------------------------------------------------

Encountered "ExchangeRate = CType" at line 52, column 13.
Was expecting one of:
   "End" ...
   <LineTerminator> ...
   <IDENTIFIER> ":" ...
   "Static" ...
   "Dim" ...
   "Const" ...
.......................
.......................
......................
----------------------------------------------------------------------------------------

And I have created the Grammar from VB.Net specification from:

http://msdn.microsoft.com/en-us/library/aa711636.aspx#Mtps_DropDownFilterText

Can any one tell me what is the possibilities of this problem, or what
mistakes I have done while writing Javacc grammar.

Thanks In Advance
Jeff Johnson - 22 Jul 2008 19:01 GMT
> VB.Net grammar

[Canned response]
This is a VB "classic" newsgroup. Questions about VB.NET (including VB
2005/2008,
which have dropped .NET from their name) are off-topic here.

Please ask .NET questions in newsgroups with "dotnet" in their names. The
*.vb.* groups are for VB6 and earlier. If you don't see the *.dotnet.*
groups on your news server, connect directly to the Microsoft server:
msnews.microsoft.com.

For questions specific to the VB.NET language, use this group:
microsoft.public.dotnet.languages.vb

Please note that things like controls and data access, which have their own
subgroups in the Classic VB hierarchy, are not language-specific in .NET, so
you should look for groups like these:
microsoft.public.dotnet.framework.windowsforms.controls
microsoft.public.dotnet.framework.adonet
(Note that "vb" is not present in the group name.)
kishore - 23 Jul 2008 11:07 GMT
Hi Mr Jeff Johnson;

I think there is no clear cut boundaries for post. So why r u telling
me that don't post here after all it's a VB forum and VB.net is in
same family.

You should answer my post, if you don't know please shut you mouth.

I you want to protect it from my post just delete the Google group and
paste a caption that nobody is allowed to post any message here.

Bye
Jim Mack - 23 Jul 2008 11:53 GMT
> Hi Mr Jeff Johnson;
>
[quoted text clipped - 6 lines]
> I you want to protect it from my post just delete the Google group
> and paste a caption that nobody is allowed to post any message here.

There are groups dedicated to VB.NET, all of which have "dotnet" or
"vsnet" in their names. This group is for VB6 and earlier.

The two languages are different enough that any answers you get here
would not likely be correct for VB.NET.

Google has nothing to do with it. These groups are hosted on Microsoft
servers and Google is just one way of accessing them.
Jan Hyde (VB MVP) - 23 Jul 2008 12:45 GMT
kishore <kishore_74_lko@yahoo.com>'s wild thoughts were
released on Wed, 23 Jul 2008 03:07:04 -0700 (PDT) bearing
the following fruit:

> Hi Mr Jeff Johnson;
>
[quoted text clipped - 6 lines]
>I you want to protect it from my post just delete the Google group and
>paste a caption that nobody is allowed to post any message here.

Actually, Jeff is correct and *IS* helping you.

Regardless of what you think, this is a VB6 group and does
not deal with VB.Net.

Jeff pointed you to the correct place so that you can get an
answer.

You can choose to ignore Jeff's advice and continue to post
in the wrong place, but I don't see how that will help you
get an answer.

I would also suggest you check your attitude, otherwise you
won't get any help from anyone.

--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde
Larry Serflaten - 23 Jul 2008 13:06 GMT
> I think there is no clear cut boundaries for post.

Become educated.  VB and VB.Net are not the same languages.

> You should answer my post, if you don't know please shut you mouth.

If you want answers, post polite questions to the correct groups.
VB.Net questions are not answered here, and VB questions are not
answered in the VB.Net groups, as per Microsoft guidance:

http://forums.msdn.microsoft.com/en/vblanguage/threads/

LFS
kishore - 23 Jul 2008 13:46 GMT
Ok.

Now I have posted my question on specified group.

Please answer me immediately on my new post there.

Thanks
PeterD - 23 Jul 2008 21:16 GMT
>Ok.
>
[quoted text clipped - 3 lines]
>
>Thanks

Is *everybody* in India a jerk like you, are you somewhat special in
that respect?
kishore - 25 Jul 2008 08:19 GMT
You all are genius person here Who decide whether to go or not,
whether to say or not.

Who r you all? Who has given you the rights to say something this
dirty language?

Its better to all that make the this group private (Do'nt allow for
public to post any thing).
Jim Mack - 25 Jul 2008 11:57 GMT
> You all are genius person here Who decide whether to go or not,
> whether to say or not.
[quoted text clipped - 4 lines]
> Its better to all that make the this group private (Do'nt allow for
> public to post any thing).

I don't understand. You're looking for information or advice, but you
don't want to ask in the place where you will get the best answers?
Instead, you insult the people giving you good advice. How is that
going to get you what you need?

If you ask questions about Mercedes autos in a Toyota forum, and the
experts there suggest that you go to the Merc forum for good answers,
would you insult and berate them? That is what is happening here.

Signature

   Jim

PeterD - 25 Jul 2008 13:34 GMT
>> You all are genius person here Who decide whether to go or not,
>> whether to say or not.
[quoted text clipped - 13 lines]
>experts there suggest that you go to the Merc forum for good answers,
>would you insult and berate them? That is what is happening here.

I doubt he has even the faintest clue... Which is somewhat sad, since
he will miss out on a lot of good resources and help with his
attitude.
Karl E. Peterson - 23 Jul 2008 18:49 GMT
> You should answer my post, if you don't know please shut you mouth.

No, you shut *you* mouth!  Bwaaahaahaaha...!

> Bye

Normal precautions regarding door-a.s interface, yadda, yadda, yadda ...
Signature

.NET: It's About Trust!
http://vfred.mvps.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.