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 - 23 Jul 2008 13: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_DropDownFi...

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
Larry Serflaten - 23 Jul 2008 14:36 GMT
> Hi All;

HEY!  This is the same classic VB group!  <he he>

Post your question to this group:
http://groups.google.com/group/microsoft.public.dotnet.languages.vb/topics?hl=en

LFS
 
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.