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!

helo, parang gusto ko poh programming nyo, mayroon ba kayong sample using bantas na pwede sa if?
 
FTW, make the code readable master.
gamit ka nlang ng syntax/reserve word na madaling intindihin at madaling tandaan kung anong function nya.

pero ayus yan. keep it up master :salute:
 
@suizame

You can try. It's free :) Sa ngayon wala pa akong implementation ng Condition like IF or Switch. My idea na, pero marami pa akong kinokonsider lalo na iba ang structure niya. But don't worry, yan na ang isusunod ko para sa next release ko. Anyway, pwede mo na siyang i-try. Tsek mo na lang mga examples ko. Thanks! :)

@jeffzee

It is intended that way. Dahil esolang siya. Kapag binago ko reserved words, hindi na siya Bantas :( Kung tutuusin at kung ako tatanungin mo, yan ang hinahanap ko sa isang programming language. Simpleng i-code, mahirap lang intindihin. Pero pagnakuha mo yung concept niya,madali na lang. At readable kumpara sa ibang esolang. Kung exposed ka sa mga iba't-ibang programming languages, may pagkakaparehas. Sasabihin ko...

? bantas
- kinuha ko sa sa classic BASIC ang bantas na 'to na ibig sabihin ay PRINT.
@ bantas
- kinuha ko naman sa mga XBase PL, panahon ng DOS na ibig sabihin position.
< > bantas
- kinuha ko naman sa C++ binawasan ko lang yung << at >>.
^, ' bantas
- kuha din sa classic BASIC.
+ - * / bantas
- common sa mga kilalang PL.

At yung ibang bantas ay native na sa BantasPL.

Bakit ko sinabing simple... Halimbawa yung Hello World:

Code:
?,Hello World

Tsek mo na lang din mga examples niya. Kelangan mo lang makuha ang basic concept para maintindihan mo yung code.

Ginawa ko 'to para sa mga estudyante para mag-isip talaga sila.


Maraming Salamat sa comment. :)
 
Last edited:
@suizame

You can try. It's free :) Sa ngayon wala pa akong implementation ng Condition like IF or Switch. My idea na, pero marami pa akong kinokonsider lalo na iba ang structure niya. But don't worry, yan na ang isusunod ko para sa next release ko. Anyway, pwede mo na siyang i-try. Tsek mo na lang mga examples ko. Thanks! :)

@jeffzee

It is intended that way. Dahil esolang siya. Kapag binago ko reserved words, hindi na siya Bantas :( Kung tutuusin at kung ako tatanungin mo, yan ang hinahanap ko sa isang programming language. Simpleng i-code, mahirap lang intindihin. Pero pagnakuha mo yung concept niya,madali na lang. At readable kumpara sa ibang esolang. Kung exposed ka sa mga iba't-ibang programming languages, may pagkakaparehas. Sasabihin ko...

? bantas
- kinuha ko sa sa classic BASIC ang bantas na 'to na ibig sabihin ay PRINT.
@ bantas
- kinuha ko naman sa mga XBase PL, panahon ng DOS na ibig sabihin position.
< > bantas
- kinuha ko naman sa C++ binawasan ko lang yung << at >>.
^, ' bantas
- kuha din sa classic BASIC.
+ - * / bantas
- common sa mga kilalang PL.

At yung ibang bantas ay native na sa BantasPL.

Bakit ko sinabing simple... Halimbawa yung Hello World:

Code:
?,Hello World

Tsek mo na lang din mga examples niya. Kelangan mo lang makuha ang basic concept para maintindihan mo yung code.

Ginawa ko 'to para sa mga estudyante para mag-isip talaga sila.


Maraming Salamat sa comment. :)

gusto ko sana matutu boss, anyway base sa site mo, about Rapid-Q mayroon kabang software non pang windows 7?
 
gusto ko sana matutu boss, anyway base sa site mo, about Rapid-Q mayroon kabang software non pang windows 7?

May link ako dun sa blog ko. PangWindows yun. Kahit panahon pa ng Win98, pwede yun sa latest. Gamit ko nga siya sa sa Win7 ko ngayon. Eto ulit website niya http://rapidq.phatcode.net.
 
I have seen this language which is posted at Sourcecodester.com.

But I can't understand how to code this PL. I think it is like Python?!

TS pede ba rin yan i-compile pra maging .EXE file?
 
I have seen this language which is posted at Sourcecodester.com.

But I can't understand how to code this PL. I think it is like Python?!

TS pede ba rin yan i-compile pra maging .EXE file?

Yes, you're right host ng BantasPL. It's not like Python. It will never be. They are both interpreters but different in syntax. So hindi pwde magproduce ng .exe natively. But possible i-bind sa interpreter yung source code para maging exe.

- - - Updated - - -

PA SNIPE MUNA PAPS:thumbsup:

okay. thanks.
 
astig naman master. saludo ako sayo :D

balak ko sana eh ganyan ang gawin kong thesis pagka 4th year ko. Gagawa ng sariling Programming Language. Is it a good idead sir? Siya nga pala I'm a 2nd year ComSci student.

Interested ako dito boss paano gawin, guide me naman :)
 
astig naman master. saludo ako sayo :D

balak ko sana eh ganyan ang gawin kong thesis pagka 4th year ko. Gagawa ng sariling Programming Language. Is it a good idead sir? Siya nga pala I'm a 2nd year ComSci student.

Interested ako dito boss paano gawin, guide me naman :)

That's nice. That is one example of a good thesis dahil sa pagiging unique.

Kung guide naman, sundan mo ang mga sumusunod, sinisiguro ko maisasakatuparan mo balak mo.

1) Mag-aral kang mabuti
2) Magmaster ka ng isang programming language
3) Magbasa ka ng maraming codes
4) Gawin mo, wag mo lang titigan
5) DETERMINADO ang dapat nasa isip mo

GoodLuck! :)
 
BRAIN BOOSTER


Dare to take the challenge in BantasPL! :)

1) Display the sum of numbers from 1 to 10.

2) Display the following patterns:

Code:
a) 
   *****
   ****
   ***
   **
   *

b) 
   1****
   12***
   123**
   1234*
   12345

c)
   1
   1 3
   1 3 5
   1 3 5 7
   1 3 5 7 9

d)
  -----@@@@@
  -----@@@@
  -----@@@
  -----@@
  -----@
       @-----
      @@-----
     @@@-----
    @@@@-----
   @@@@@-----

e)
   **********
   ****  ****
   ***    ***
   **      **
   *        *

f) 
   *        *
   **      **
   ***    ***
   ****  ****
   **********

g)
   *******
    *****
     ***
      * 
h)
      *
     ***
    *****
   *******

i)

   **********
   ****  ****
   ***    ***
   **      **
   *        *
   *        *
   **      **
   ***    ***
   ****  ****
   **********

j)
   *******
    *****
     ***
      * 
      *
     ***
    *****
   *******
3) Create a program that demonstrates the Law of Sines and Cosines

4) Create a program that computes the distance of two points.

5) Create a program that solves the value of x in Quadratic Equation.
 
Last edited:
yeah you're right and i won't dare :)

sana makapag-code na let ako, i'm more into web dev dati pero kahit php mysql mukang kelangan ko na ng refresher, la na time at pati interest nabawasan nadin *sigh*
 
That's nice. That is one example of a good thesis dahil sa pagiging unique.

Kung guide naman, sundan mo ang mga sumusunod, sinisiguro ko maisasakatuparan mo balak mo.

1) Mag-aral kang mabuti
2) Magmaster ka ng isang programming language
3) Magbasa ka ng maraming codes
4) Gawin mo, wag mo lang titigan
5) DETERMINADO ang dapat nasa isip mo

GoodLuck! :)

sir I am willing to learn po sir and I am determined. Pero as of now, wala pa talaga skills to do it sir aha.
 
yeah you're right and i won't dare :)

sana makapag-code na let ako, i'm more into web dev dati pero kahit php mysql mukang kelangan ko na ng refresher, la na time at pati interest nabawasan nadin *sigh*

You won't but you CAN. :)

Just keep on coding.

- - - Updated - - -

sir I am willing to learn po sir and I am determined. Pero as of now, wala pa talaga skills to do it sir aha.

You have to do #2.
 
Last edited:
kelangan bantas tlga gamit? hehehe ge nxt time, pag may time na :salute:
 
kelangan bantas tlga gamit? hehehe ge nxt time, pag may time na :salute:

Syempre. That's the thread title at yun yung challenge :)

____________o0o____________

Let's answer 2 problems.

Challenge #1
Code:
%,PROGRAM : Challenge #1
@,1
<,1
@,2
<,0
[,1
  @,2
  +,@1
  @,1
  +,1
],10
@,1
<,The sum of numbers from 1 to 10 is 
&,@2
&,.
?,@1

OUTPUT

View attachment 156490

Challenge #2.e
Code:
@,1
<,1
@,2
<,
@,3
<,

[,1
  @,2
  &,*

  'Replace _ with single space
  @,3
  &,_

  @,1
  +,1
],10

@,1
<,5
@,4
<,
@,5
<,
@,6
<,0

[,1
  @,4
  <,@2
  (,@1

  @,5
  <,@3
  (,@6
  @,6
  +,2
  
  @,7
  <,@4
  &,@5
  &,@4
  ?,@7

  @,1
  -,1
],1

OUTPUT

View attachment 156472
 

Attachments

  • Ans2d.png
    Ans2d.png
    6.7 KB · Views: 18
  • c1.png
    c1.png
    7.2 KB · Views: 7
Last edited:
Answer for challenge #2.c

Challenge #2.c

Code:
%,PROGRAM : CHALLENGE #2.c
@,1
<,1
@,2
<,
[,1
  @,2
  &,@1
  &, 
  ?,@2
  @,1
  +,2
],9

OUTPUT

View attachment 158408
 

Attachments

  • Ans3.png
    Ans3.png
    6.9 KB · Views: 6
Last edited:
Answer for Challenge #4.

Code:
%,PROGRAM : CHALLENGE #4 - Distance Between 2 Points
?,Enter the values for point A
@,1
>,xA:
@,2
>,yA:
?,
?,Enter the values for point B
@,3
>,xB:
@,4
>,yB:
@,5
<,@1
-,@3
^,2
@,6
<,@2
-,@4
^,2
@,7
<,@5
+,@6
^,.5
?,
@,8
<,The distance of Point A and Point B is 
&,@7
&,.
?,@8

OUTPUT

View attachment 159664

Source : MathIsFun
 

Attachments

  • Ans4.png
    Ans4.png
    10.9 KB · Views: 5
Last edited:
Law of Sines ( answer for CHALLENGE #3)

a/sin(A)=b/sin(B)=c/sin(C)

Given the ff. values:

Angle B : 35 deg.
Ange C : 105 deg.
Side b : 7
Side c : ?

Solution:

* Convert B & C to radians from degrees

B=(B*3.1416)/180
Code:
@,1
<,35
*,3.1416
/,180
{,@1
?,@1

C=(C*3.14.16)/180
Code:
@,2
<,105
*,3.1416
/,180
{,@2
?,@2

... then follow the formula

7/sin(B) = c/sin(C)

(7*sin(C))/sin(B)=c

Code:
@,1
<,.5736
@,2
<,.9659
@,3
<,7
*,@2
/,@1
?,@3

Full Source Code:

Code:
%,PROGRAM : CHALLENGE #3 - Law of Sines

@,1
<,35
*,3.1416
/,180
{,@1
?,@1

@,2
<,105
*,3.1416
/,180
{,@2
?,@2

@,3
<,7
*,@2
/,@1
?,@3

Screenshots:

View attachment 162824

View attachment 162823

Source : http://www.mathsisfun.com/algebra/trig-sine-law.html
 

Attachments

  • AnsSine.png
    AnsSine.png
    7.6 KB · Views: 4
  • AnsSine2.png
    AnsSine2.png
    11.7 KB · Views: 12
Last edited:
Back
Top Bottom