nerobot

Forum Replies Created

Viewing 15 posts - 781 through 795 (of 805 total)
  • Author
    Posts
  • in reply to: Ted2Go IDE #3859

    nerobot
    Participant

    New stuff in my repo – code parser for monkey2 files.

    Parser is simple yet. What it can:

    1. Parse the first word after these keywords: “class”,”struct”,”enum”,”global”,”const”,”method”,”function”,”property”
    2. Parse recursively if file contains #import
    3. Check file last modified time before paring – to skip not modified files.

    And all words from parser we can see in autocomplete list.

    What todo:

    1. Improve parser – so it can know about scopes and all variable types (field, local, params, lambda – gradually)
    2. Check current scope for autocomplete
    3. Merge with latest monkey2 repo changes.

    Even now, writing code has become much easier! 🙂

    in reply to: FIRST HTML5 PYRO FOR MONKEY2 DEMO EVER! #3827

    nerobot
    Participant

    Works and looks fine on Windows. 🙂

    in reply to: Syntax for "Array of Arrays" (Jagged Array) ? #3822

    nerobot
    Participant

    deleted.

    in reply to: Ted2Go IDE #3764

    nerobot
    Participant

    I just pushed new stuff – base auto completion support! 🙂

    Now it shows keywords only, but easy to extend.

    Next step 1 – write simple monkey2-parser, so we get smart completion.

    Next step 2 – write code analyzer to check current scope and all variables (global, local, params), so we get pro-level ide 🙂

    And between these steps – add CodeTreeView and Navigation panels (each cool ide must have).

    Windows version of ted2go (dropbox)

    Issue: cursor became invisible after some time. (Timer became broken? but why)

    in reply to: Ted2Go IDE #3754

    nerobot
    Participant

    Hi. Here is an easy way to cancel progress dialogs.

    In this case – for cancel building dialog.

    Just add this code into buildactions.mx2 / BuildActions class / BuildMx2 method.

    in reply to: New gui -test view #3753

    nerobot
    Participant

    Nice work, Adam 🙂

    in reply to: FIRST HTML5 PYRO FOR MONKEY2 DEMO EVER! #3724

    nerobot
    Participant

    Thanks! Can you share this func? 🙂

    I wrote Polygon.PointIn() func based on lines checking.

    As Rect is partial case of Polygon I can use it, but want to see another solution – maybe there is more optimal solution for rotated rects.

    (my func works with convex poly)

    in reply to: ToString() method by default #3723

    nerobot
    Participant

    We not expected to convert string->bool like

    Local b := “true” (1)    or    b := Bool(string) (2)

    For this case other langs usually have Bool.Parse() func with different params.

    However, for monkey case (2) also looks like good.

    In mx2 it would be great to override To:String operator for Bool and return ‘true’/’false’.

    But for IF’s str->bool conversions we expect use of rule “null or empty-string is false”.

    in reply to: Ted2Go IDE #3707

    nerobot
    Participant

    I think – it’s good idea to continue develop inside of monkey2-fork (not separated ted2) to make merge from official easily.

    And maybe Mark pull some of changes.:)

    in reply to: ToString() method by default #3701

    nerobot
    Participant

    Oh.. so will use Int(boolVal) until better times.

    in reply to: FIRST HTML5 PYRO FOR MONKEY2 DEMO EVER! #3692

    nerobot
    Participant

    Wow, it’s cool 🙂

    What do you use to control overlapping items with mouse?

    in reply to: Overriding idea. #3633

    nerobot
    Participant

    Pass correct parameters (1.0,2.5) is the best way! )

    in reply to: How to use Object.typeName() method? #3632

    nerobot
    Participant

    Another question: how to get type if I have only class name but not instance?

    In java it’s ClassName.class keyword, but it’s a part of reflection.

    What I d0:

    I think I can use an inner structure with stack like in ted2.Plugin class, but it’s kind of magic for me how it extract data with our template type only.

    in reply to: How to use Object.typeName() method? #3628

    nerobot
    Participant

    I solved it by adding method

    into Object class and rebuilding module.

    Now I get types like this:

    by simple call of myObj.GetType().

    This is what I need! 🙂

    in reply to: Ted2: Experimental Plugin System #3611

    nerobot
    Participant

    Thanks for OnCreate().

    Sort by priority can be useful. But all users want to use them plugins as primary and we’ll got ride of priority. 🙂

    I vote for adding priority.

Viewing 15 posts - 781 through 795 (of 805 total)