Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

uint token parse error!


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
8 replies to this topic

#1 loboWu   Members   -  Reputation: 201

Like
0Likes
Like

Posted 13 February 2014 - 02:04 AM

Dear Andreas:

   please try this in 2.28.1

   void main()

   {

        uint8  uint8Temp;

        uint32 uint32B;

   }

 

   The variable name starting with (uint8, int8...) will result in parsing error.



Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3265

Like
0Likes
Like

Posted 13 February 2014 - 08:59 AM

Thanks. I'll look into it.


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#3 Andreas Jonsson   Moderators   -  Reputation: 3265

Like
0Likes
Like

Posted 13 February 2014 - 05:23 PM

Fixed in revision 1836.

 

Thanks,

Andreas


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#4 loboWu   Members   -  Reputation: 201

Like
0Likes
Like

Posted 13 February 2014 - 09:17 PM

Thanks a lot.

 

But in revision 1837 , it will crash in "as_restore.cpp" line 4579 "SInfo info = stack.PopLast();"

if stack in empty, the info maybe null.

 

Currently, I use revision 1833



#5 Andreas Jonsson   Moderators   -  Reputation: 3265

Like
0Likes
Like

Posted 14 February 2014 - 09:56 AM

I assume you meant line 4597, right?

 

Can you provide a sample script to reproduce this problem? I need to understand what caused it to get into this error condition, as there might be a bug hidden somewhere else in the code.


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#6 Andreas Jonsson   Moderators   -  Reputation: 3265

Like
0Likes
Like

Posted 15 February 2014 - 11:21 AM

I've made some improvements to the error handling in the asCRestore class in revision 1839. It should no longer crash in this situation.


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#7 loboWu   Members   -  Reputation: 201

Like
0Likes
Like

Posted 18 February 2014 - 01:24 AM

I just update to latest revision.

But it crash at array bytecode saving.

try this

 

void main()

{

     const uint8[] arr = {1,2,3,4,5};

}

It compiles with no error, but it crash when saving bytecode,



#8 Andreas Jonsson   Moderators   -  Reputation: 3265

Like
0Likes
Like

Posted 18 February 2014 - 01:05 PM

I'll look into it.


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#9 Andreas Jonsson   Moderators   -  Reputation: 3265

Like
0Likes
Like

Posted 18 February 2014 - 07:35 PM

Fixed in revision 1846.

 

Hopefully that was the last problem ;)


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS