1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Alternative Syntax IDE - Would it be feasible?

Discussion in 'Chit Chat' started by wonder, Aug 5, 2019.

  1. wonder

    wonder Expert Licensed User

    Here's a question for the B4X developers (@Erel):
    - Assuming there was a reason to do it, would it be technically feasible to change the current syntax from BASIC to Python (for example)?

    I have no idea how the source code or project structure looks like, but if the B4X commands are sitting on a database where you have the BASIC syntax on the left column and the Java syntax on the right column, perhaps a new column could be added with another language syntax.

    I almost sure the reply will be "it's not possible", but to be honest the BASIC syntax isn't even taught in schools anymore.
    The world has moved to Python as the preferred high-level language to teach newcomers into the development world (along-side with JavaScript).

    I'm not saying the BASIC syntax should be dropped, but perhaps we could have an alternative syntax being translated to (ugh!) Java.
    IDE Options --> Select Language --> Python

    On a side-note, as with the localization project, it would be nice to see Anywhere Software open-sourcing some parts of the IDE or even the language itself. That way we could all contribute into it. :)

    Sorry in advance.

    EDIT: The greatest weakness of the Python language, in my opinion, is the lack of mobile support. There are no proper solutions (compared to B4A) that allow developers to create Python based apps.
    B4A, as incredibly powerful as it is, if it offered a sister-product named P4A, it could capture the attention, interest and money of thousands of Python developers worldwide.
    Erel, if you develop P4A and P4i, you'll become the next Elon Musk!!! :D
     
    Last edited: Aug 5, 2019
    Peter Simpson likes this.
  2. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed User

    At first I was loling, but after some thought I think is not a bad idea the main problem is that b4x products were not created in one night. May be several years will pass before such tool is working and who knows if by then Python becomes a mainstream language for Android, ios, etc.

    You know for sure that that escenario will not happen with basic.
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Note that the programming language is not BASIC. It is B4X - a programming language with syntax that is somewhat similar to visual basic.

    Technically it is possible to create a compiler for a different programming language.
    (I'm not familiar with Python enough to say whether it supports features in B4X such as resumable subs, event driven and others.)
    Practically, I don't see it happening, but who knows...
     
    ilan and wonder like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice