Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Bantas Programming Language : Pinoy Made!

nice 1 TS :clap:

Salamat :)

- - - Updated - - -

para naman sa pagpapatuloy (post #81) ...

Kung ang ( bantas ay parang LEFT function sa BASIC (e.g. left("Bantas",3), ang ) bantas naman ay parang RIGHT function sa BASIC (e.g. right("Bantas",5), pano naman kaya natin iimplement ito sa BantasPL... Halimbawa, kukunin natin ang mga karakter na ant sa salitang Bantas na parang MID function sa BASIC (e.g. mid("Bantas",2,3)).

Bantas ay magiging ant.

Ang gagawin natin ay gagamit tayo ng ) bantas para makuha natin ang mga karakter na antas mula sa salitang Bantas. Tapos, gagamit tayo ng ( para naman makuha natin ang ant mula sa antas. Tignan natin ang code na nasa baba.

Code:
@,1
<,Bantas
),5
(,3
?,@1

Pagkapasok ng value na Bantas (<,Bantas ) sa position #1 ( @,1 ), kukunin ang limang (5) karakter mula sa kanan ( ),5 ), ito ay antas, tapos kukunin ang kanyang tatlong (3) karakter mula sa kaliwa ( (,3 ), saka ididisplay ( ?,@1 ) ang ant na natira mula sa salitang Bantas.
 
Last edited:
Concatenation

Code:
@,1
<,Bantas
&,_Programming
?,@1

Tulad sa BASIC, ang concatenation o pagsasama ng dalawang strings sa BantasPL ay paggamit ng & bantas.

Line #3 : Idudugtong ang _Programming sa salitang Bantas na nakalagay sa position #1 - ang kasalukuyang posisyon ( Line #1 at Line #2 )
 
Last edited:
sali ako dito Sir muthym , galing netong idea mo na eelibs ako ah, pangarap ko talagang makagawa noon ng sarili kung PL nung college
.
.
alam niyo po pala yun kay " Stallman word " nakakatuwa siya talagang tao ...:D
.
.
sa akin ang Project ko lang nagawa eh .... yun i convert ang symbianize website sa Facebook Group ...:D
.
.
lageng itinatanong sa akin ng mga prof ko kung anong kaibahan nito sa existing na...kaya lage akong talo sa dibate wahhahhah .......:D
.
.
.
still panalo pa rin ang idea ko ...:D
 
Last edited:
sali ako dito Sir muthym , galing netong idea mo na eelibs ako ah, pangarap ko talagang makagawa noon ng sarili kung PL nung college
.
.
alam niyo po pala yun kay " Stallman word " nakakatuwa siya talagang tao ...:D
.
.
sa akin ang Project ko lang nagawa eh .... yun i convert ang symbianize website sa Facebook Group ...:D
.
.
lageng itinatanong sa akin ng mga prof ko kung anong kaibahan nito sa existing na...kaya lage akong talo sa dibate wahhahhah .......:D
.
.
.
still panalo pa rin ang idea ko ...:D

Welcome na welcome ka dito. i hope makagawa ka ng mga simple programs or programs na maaring magawa sa BantasPL gamit yung mga existing symbols o bantas na meron sa kanya, na pwedeng magamit o maapply ng mga estudyante lalo mga ComSci/CoEng/IT/ComProg sa kanilang mga computers subjects. Para na rin sa pagpapalaganap at makatulong sa pag-iimprove ng BantasPL.

Kilalang-kilala ko si Stallman. Sa katunayan, isa siya sa paboritong kong hacker.

Maraming Salamat! :)
 
Last edited:
How to get the length of a string?

Code:
@,1
>,Enter a string:
@,2
_,@1
?,@1
?,@2

Line #1 : isi-set ulit ang position sa #1
Line #2 : idi-display ang "Enter a string:" at mag-iinput ang user.
Line #3 : isi-set ang position sa #2 para dito ilalagay ang length ng string na na-input
Line #4 : gamit ang _ bantas, kukunin ang length ng value na nalagay sa position #1 ( _,@1 )
Line #5 at #6 : i-didisplay ang laman ng position #1 at #2
 
Last edited:
Subscribed!

Inaabangan ko na lang po ang implementation ng conditional statements.
 
Subscribed!

Inaabangan ko na lang po ang implementation ng conditional statements.

Maraming Salamat :)

Actually, meron na. Nabanggit ko na rin 'to sa previous post. I just need to debug para ma-implement ko ang condition sa BantasPL. Kaya lang at originally, I wanted a statement which is one line. Kaya lang it's impossible to implement if I will follow its syntax (i.e. [command],[value] ). It will take a line of 2 or 3. Gusto kong sundin at mag-stick sa syntax niya which is left and right concept lang para madali at di komplikado sa parsing.

.label1
[statement here]
[statement here]

@,1
=,0:label1

or

@,1
=,0
[a goto command/symbol],label1

Note: 0 (zero) before the colon indicates the value of the conditional statement and label1 after the colon indicates the label of the block to be executed if it meets the condition. Now, here's my another idea. As I've said before, there's already a condition in looping. I will just re-check what I did in looping statement in Bantas. I don't know if this is a workaround or trick just to implement condition. In my case, I just need a condition to implement a menu where a user can choose an option. And the last one, just to perform some basic ways for my math problems. Equal (=) operator is enough for the job. It's just like a series of case statements in BASIC's Select command.

Here is my example.

Note : The colon (:) symbol that I used here is for modulus operator (not yet implemented)

Code:
@,1
>,Enter a number
:,2

[,1
  ?,It's an even number
],0

[,1
  ?,It's an odd number
],1

Saka ko na iisipin and ibang relational operators like < and > dahil ang isa pang problem ko ay reserved na ang mga ito. Pero pwede ko namang gamitin if I will dedicate a symbol for switching. Alternatively, no choice, I'll use l,e & g as relational operators.
 
Last edited:
bakit ayaw mag DL sa akin ts. gusto ma try ang BPL. fatal error at mysql error yung lalabas.
 
bakit ayaw mag DL sa akin ts. gusto ma try ang BPL. fatal error at mysql error yung lalabas.

Hello...

Anong link ginamit mo? I tried again yung nasa 1st page, okay naman. kung okay lang, PM mo sa akin e-mail mo, dun ko isend yung copy kung ayaw pa rin sa'yo.
Yung download link sa blog ko, i-update ko lang. Thanks! :)
 
ayos to pilipino made language medyo nakakahilo ung codes :p
 
BantasPL using WiNE in Linux

I just tried if BantasPL, which is Windows-based, will work on Linux.

I'm also planning to implement this in Linux natively. Hopefully :)

View attachment 176821
 

Attachments

  • Wine_Bantas.jpg
    Wine_Bantas.jpg
    23.3 KB · Views: 15
Last edited:

Attachments

  • BantasPL Core Concept.png
    BantasPL Core Concept.png
    63.6 KB · Views: 5
  • BantasPL Core Concept.zip
    357.2 KB · Views: 54
Last edited:
ayos to, sabihin ko to sa wife ko, siya kasi marunong haha, para supportahan ng mga comsci :)
 


sana ma-share mo sa mga students at makapag-post sila ng sample programs ( w/ concepts applied coming from their subjects) written in this language :)

Maraming Salamat.


ayos to, sabihin ko to sa wife ko, siya kasi marunong haha, para supportahan ng mga comsci :)

Sana makarating. Maraming Salamat! :)
 
Last edited:
up lang po natin 'to.... :)


Here's my workaround for my program in BantasPL that needs a condition (i.e. menu)...

Using Choice command of DOS.

Filename : dst.bat
Note : Dont forget the extension name, bat.

Code:
echo off
:main
cls
echo *** DISTANCE SPEED TIME PROGRAM ***
echo.
echo [1] Distance
echo [2] Time
echo [3] Quit
echo.
choice /c 123 /n /m "Choice:"
cls
if errorlevel 3 goto 3
if errorlevel 2 goto 2
if errorlevel 1 goto 1

:1
bantas distance
echo.
goto main

:2
bantas time
echo.
goto main

:3
cls
echo _o0o_ by MUTHYM _o0o_
color 0A
echo.         
pause
cls
echo Thanks! :) ... 
echo.
color

Output :
View attachment 180621

Here's the code for DISTANCE & TIME programs for BantasPL.

Filename : distance

Code:
%,DISTANCE
@,1
>,Speed(km/hr):
@,2
>,Time(hr):
@,3
<,@1
*,@2
?,
@,4
<,Distance(km):
&,@3
?,@4

Filename : time

Code:
%,TIME
@,1
>,Distance(km):
@,2
>,Speed(km/hr):
@,3
<,@1
/,@2
?,
@,4
<,Time(hr):
&,@3
?,@4
 

Attachments

  • dstbat.png
    dstbat.png
    7.5 KB · Views: 5
Last edited:
Back
Top Bottom