Skip to content
Wilmix jemin edited this page Aug 14, 2017 · 19 revisions

 

 

CHDOLLAR(CH$)ProgrammingLanguage

================================

 


(UNIT-1)
=========

CHDOLLAR 
=========

What  is    CHDOLLAR  ?
=======================


CHDollar Programming Language  is a modern technology consists of JAVA OOPS, C# OOPS, 
Behave like CDOLLAR OOPS, GDOLLAR OOPS,used in Remote  WebApplication , and Advanced 
OOPs.
It  is  mainly  used  as a   Remote Webappilication.
It is used in case of Billing,Forms ,normal  remotewebapplication ,
  CH$-GRAPHICS ,and complex problems.
  
  
  What   is  the  difference   between Remotewebapplicationserver  and  webserver?
  ===============================================================
  
  Definition:  
  ========
  Remote  webserver  application    is   an  application    operates    with

  client-server.but  it  will  post  and  get  objects   from  server that  can  be
  
  exchanged through out  sessions  or  with  in   two   computers  ;  where   as   one  act   as  client
  
  and  other  act   as   server.
  
  eg)  When  you enter   details  using  CH$  program  that   creates   a   data  object
  
  called  as .dsn  file;  that can  be  exchanged  through  out   sessions.
  
  Difference  between   webserver  and  remoteserver  means   remotserver  

has   remote-client  connection  but  webserver don't have.

Data flow  is  unknown   using  J$  architecture.  where   as  in   

webserver  and  application server  like  tomcat,JSTAR SERVER,Jboss server,  etc;  here  dataflow  is  known.

JSTAR  webserver   is used   only   for  webdesign  so   we  don't  focus   remoteserver.

In webserver  data  will   be   sent  between  client(browser)  and  server

is  known  to users.

so  this   indicates   webserver   has  no  security  but  remoteserver  using  J$  architecture

has  more   security  according  to  research.

Remoteserver   uses http +  socket  connection    where   as webserver uses   only  http  connection

Remote web  application server  =>  webserver  +  Applicationserver +  datasecurity.

So J$ is  most  advanced in  security   side. but  it  has  more  framework  and  latest technology

and  follows  shortest  code    than  any  technology and  including  advanced  business and  many  advantages

over  other  technologies. When  you  host   Jdollar  or  Chdollar  Servers   in  any  of  your   today

available   hosting   provider.  You   can   see  Jdollar  or   Chdollar   website   at  your  mobile phone

or  at  internet.

SO   Hosting    is  mandaltory   for  CHDollar  p.L  and  Jdollar  p.l   to  publish   the  webpages.


  
ABOUT CHDOLLAR Programming Language
---------------------------------------------------
It is concenterated in building and designing Advanced Operating systems.
CH$ is invented in GDollar in year 2008.
CH stands for GAMMA and dollar stands for money.
So we called as GAMMA Technology.

 Merits of CH$
 ===============
> It is Good to create any compilers..and Advanced Operating systems and utilities.
> It has simpilified code
> it uses Pointers concept.
> CH$ also used with C@ and Arrow# in mobile and cloud computing.
>  it  is     learnable  ,easy  to use, and   let  developers to  focus  only    c++
or  C#  Programming  Language
>  CH$  also    support   CHDOLLARAJAX
>  it  can  be  used   to  execute   .exe  files.

Disadvantages
=============
> It  is   used  to  build   normal  remote  webapplication
> absence   of   framework in  CH$ .

CHDOLLAR has only 1 pillars which is present in SRGX and jittechsection1

a).CH$(simillar to Advanced  OOPS with  CUTIL and C++ combination) called as CWEB

accepting only   .exe   and  .dll   files.

SYNTAX FOR CHDOLLAR (.chdollar) (beautiful syntax)
---------------------------------------------------------------

<CHSAUCER>

@Remote //  to  load  CHDollar  packages
<PACK>  <namecspacename>  //  pack  will   act  like   namespace
{
   <CLASS> <Classname>
   {
      public void main()
      {
       <!  CHDOLLAR  LOGIC  !>
      }
   }
}

</CHSAUCER>

note: This should be saved in filename.CH$
----

How Chdollar Technology Works?  Or  chdollar  workflow? (EASY  APPROACH  than  JSTAR)
======================================================================

At first   Developers   write   a  CH$   program    and  compile

using  javac    filename.CH$  it   creates   filename.CH$.exe  file  for  that.

now   execute    the  file   at  url  as  filename.CH$  when  you   run  remoteserver   

the   .exe   output   is  displayed   in  browser  as  a  fast   manner.

============================================================

How to run remoteserver in windows?

click  on  CHDOLLARSERVER   located   at  CHDOLLAR  folder.

note : default  hostname  is  localhost  or ip  address.

Why  we   need   remotewebapplication?  what  is  the  difference  between  webapplication   and  this?

webapplication   webpages   will  not   travel   around   web
but  remotewebapplication is  seen  in internet ,mobiles,
and all  devices.

==================================================================================
                                                      UNIT  -2:  a)  CHDollar  with  CDollar
==================================================================================
CDOLLARARRAYS
===============

CDollarArrays list1 = new CDollarArrays(string);
to add any collection objects to array use
add (String) functions and to Display those
objects use list1.Display();
Any class that use CDollarArrays you should extends Array in class...


TREEOFARRAY
============

SYNTAX for TreeofArray:
--------------------------------------
TreeArray <name> = new TreeArray(String);
<name>.add(elements);
where elements may be string or collections....

LISTOFARRAY


SYNTAX for List of Array:
--------------------------------------
LArray <name> = new LArray(string);
<name>.add(elements);
The elements may be string or collection elements.

Operators conditions and loops
--------------------------------------------------
Operators
---------
+ => ADD
++=> Increment
- => Substract
--=> Substract
* => Mulitply
/ = Division
~ => bitwise unary not operator
NOT (!) => flips true values to false and false values to true.
>>, >>>, and << => IT is used to shift all the bits of a number left
or right
a Specified number of places...
Other Operators
----------------

   # => !=  operator
AND => && And operator
OR => || OR operator
?: => value =condition ? value1 : value2 (similar to if then else)
== => compare two values...
=  => Assignment operators
Equals  => Compare two objects

Relational Operators
--------------------
> >= => Greater than , Greater than equals.
< <= => Less than , Less than equal
 = or  != => Equals and not equals

CONDITIONS
----------
IF Syntax:
------------
if <condition> statements;
IF then else Syntax:
----------------------
if <condition> statements else statements1
if <condition> statements1 else if condition1 statement2 .... and soon.
SWITCH Statements:
-------------------
switch (expression)
{
case value1 :
statement1;
[break]
................
case valuen:
statementn;
[break]
-----
default:
default_statement;
}
Explanation:
------------
If the expression is equals value1
statement1 will be executed.
if you use break it comes out of the loop
otherwise it continue to execute next statement.
The default value at the end is optional. It can be included if there are other values that can be held in
your variable but that you haven't checked for elsewhere in the switch statement.
THE WHILE LOOP
-----------------------------
while (<condition> )
{
< Statements block>
}
Note: if the condition is true the block get executed.
otherwise the loop will be continued.
THE DO --- WHILE LOOP
-----------------------------
do
{
< Statements block>
}
while( <conditon> )
Note: if the condition is true the block get executed.
and it is tested at the end of the loop, but not at the
beginning. The loop will be continued until it satisfies the condition.
biggest reason to be use the do - while loop is that
when you need the body of the loop to be run atleast once.
FOR LOOP
--------
for ( identifier=value; cond1; iterator operators)
{
< Block statements >
}
For -EACH Statement
----------------------
for ( variable : collection)
statement;
for eg)
If you add integers (1 to 3) to arraylist
and if you wish to copy and store it in an integer variable
so that you can print the values that is copied from
arraylist.
Then follow this method of for each statements...
for ( int a in  ar)
{
< Block statements >

}
Output:
-----------
value=1
value =2
value =3
CONTINUE and Break
---------------------------------
Break means it break out of loop
and continue means
it will continue to execute the statements;
for eg)


CHDOLLAR STRUCTURES
-----------------------------------
CHDollar structure is another user defined data type available in CDollar programming, which allows
you to combine data items of different kinds.
using the same memmory location. It also provide an efficient way of using the same
memory location for multi-purpose.
Thus CHDollar Structures is Equivalent = C progamming Structures and union.
and it uses less memmory capacity than any Programming languages. IT is also
used to store collections, object ,etc.
IT is the most important datastructure implemented by wilmix jemin j.
He reduces the demerits of C Programming and
Gdollar  child is CHDollar. So CHDollar has very beautiful and Advanced Concepts
than any Programming Languages. 

SYNTAX:

<STRUCTURE> <datatype> list = <NEW> <STRUCTURE> <datatype>(object);
list.add(object);

What is Pointers?

Variables that hold memory address are called pointers.
Why we mainly use Pointers?
Pointers reduces the length and complexity of the program,
They increase the execution speed.
It holds the memmory addres..

SYNTAX of CHDollar Pointers:
---------------------------------

{*}<<DATATYPE>> <pointer-name> Pointer<<DATATYPE>>(intialvalue);
for eg)
<Str> s ="Life is beautiful";
{*}<<Str>> l Pointer<<Str>>(s);
The given above statement will store the string "Life is beautiful"
in Pointer name l;


==============
BUCKET
-------
Bucket are used to store key,value data, and Generated Random number
where datatype may be string ,object ,etc.
SYNTAX:
----------
Bucket<DATATYPE> list = <NEW> Bucket<DATATYPE>(<DATATYPEVALUE>);
list.KeyAdd(<DATATYPEVALUE>);
list.add(<DATATYPEVALUE>);
list.RandomAdd();
list.Display(list);
Advantages
----------
Using Bucket you can also Retrieve the values stored n position.
Searching and Insertion is fast than other DTS.
Random Indexing is possible.
eg) If you store a duplicate value such Random key will be different.
It also used to add many values.
EXTEND
------
Extend class is used in CDollar since to provide multiple inheritence
about 100000000 classes . Extends class also list values in methods and
constructor values.
Extend means a Bucket contains List of class and it is also
Behave like Bucket. So it is also one of the Advanced concepts in CDollar.
SYNTAX:
--------
EXTEND <<DATATYPE>> list11 = <NEW> EXTEND <<DATATYPE>> (STRING);
list.KeyAdd(<DATATYPEVALUE>);
list.add(<DATATYPEVALUE>);
list.RandomAdd();
list.Display(list);
Advantages:
It is also used to add many values
Indexing is possible
Value can also be list by index and behave like bucket.
It list only the class value and object value.
It is stateless.
PIPE:
-----
PIPE is used to maintain stateful state.
It is used for DataFlow in a Program. We can also add the values,
Constructor values of one class and other class and display it.
It also list the values from the Bucket.

SYNTAX:
-------
Pipe <<DATATYPE>> list11 = <NEW> Pipe <<DATATYPE>> (STRING);
list.KeyAdd(<DATATYPEVALUE>);
list.add(<DATATYPEVALUE>);
list.RandomAdd();
list.Display(list);
Why we Prefer CDollar for software Field?
Used in BILLS, Forms ,Reports,Charts, any software project , GRAPHICS to web etc.

CHDollar ADvantages over JAVA and other Programming Languages
----------------------------------------------------------------------------------
A) CHDollar is the combination of  C# , C/C++, and Advanced OOPS.
b) CHDollar will only accept the shortest attractive syntax.
c) CHDollar also used for construction of any datastructures.
d)  it  is   easy  to   focus  ,learn and  use.
e) It also supports friendly function, pointers , and structures.
f) CHDollar support Virtual memmory and garbage collection.
g) It is efficient, fast and easy to understand, and it is a OOPS Technology.
h) CHDollar is a High level language.
i) CHDollar is highly portable language
j) Using CHDollar you can create any datastructures as libraries and
use it in your Application program.
k) CHDollar language is a structured and object programming language.
l) CHDollar has OOPS concepts like JAVA.
m) CHDollar have the concept of Packages,etc.
n) CHDollar have the concept of constructor or destructor and had magic oops concepts.
o) It Support functions with Default Arguments
q) It Supports Exception handling
r) It have pointer and Nodes..
s) CHDollar is much simpler oops concepts, which leads to faster development and less mental overhead.
t) CHDollar is almost always explicitly compiled
u) CHDollar is easy to learn. CHDollar was designed to be easy to use and is therefore easy to write,compile, debug, and learn than other programming languages.
CHDollar is object-oriented. This allows you to create modular programs and reusable code.

v) CHDollar creates  .class,  .exe  or  .dll   files   and  it  can be  used  with   CHDollar  main  program.     
w) CHDollar will compile and run at same time where other technology can't
do
x) CHDollar is mainly used in complex programming , Billing the
goods,Graphics,etc

y)  CHDollar  is   used  with OAKJAVA

z)  CHDollar   has   Advanced  OOPS  like  CDollar    ,  and  GDollar.

AA) CHDollar is an interactive Technology.

BB)  CHDOLLAR  is    used  as  a  remote  webapplication


FAQS
------
A) A C /C++ Programmer or any oops developer    or  C#  programmer  
 can easily study it....

========================================================================
UNIT -3 :CHDOLLAR  Program Syntax  AND ADVANCED   CONCEPTS  PROGRAM.
========================================================================
Syntax:

<CHDollar>

<PACK> <nAMESPACE>
<%
    <CLASS> <CLASSNAME>
    {
        public FLOAT CHDollar-MAIN()
        {
            
<!  CHDOLLAR  LOGIC!>              
               
     

%>

?>

BAG
=====
Bag is the extension of LinkedHashmap and it is the fastest
datastructures than Dictionary.

SYNTAX:
=======


Bag object = new Bag();
object .put(key,value);
Functions
getValues(key) => it is used to get the values for a particular key
get(key,loc) => it is used to get the value stored at a loc (indexing
purpose)
boolean containsValue(object Value) => To check the value present in bag or
not.
put(key,value) => it is used to add key and value in Bag
remove(key ,value) => It is used to remove key and value.

TreeList
========

TreeList simillar to Bucket but store items in tree format.

TreeList list = new TreeList ("BUCKETS");
list.KeyAdd(KEY);
list.add(VALUE1);
list.RandomAdd(RANDOMNO);
list.DisplayO(list,0);


MASK
====
It is the extension of Tree Structure and it can store many values
using mask object and we can also retrieve the values stored in mask.
Mask m = new Mask(<DATATYPE>);
m.add(multiple values);
m.getR(Loc); => Get the values stored in right position
m.getL(LOC) => Get the values stored in left position


HEAP:
====


Creates a tree , puts the data into tree in a fairly balanced way and displays
the tree's size and data in a tree by performing an inorder traversal.
Heap hob = new Heap(<datatype>);
hob.add(datum);
hob = new Heap(key,value1,value2);

Bucktist
==========

Bucktist is similalr to Bucket but it is used to addd two values with one
key.
Bucktist l = null;
l= new Bucktist(key,value1,value2);


WICKET
=======
Wicket is used to store multiple values using same object with
4 values per key.

Syntax:

Wicket list12;
list12=new Wicket(key,v1,v2,v3,v4);
list12.Display();
list12.Display(list12,location);


EXAMPLE -1: BAG

<CHDollar>

<PACK> MyP
<%
    <CLASS> Programs
    {
        public FLOAT CHDollar-MAIN()
        {
            
        Bag  b <NEW> Bag();

b.PUT(1,34);
b.PUT(2,444);

<PRINTLN>(""+b);
              
               
     

%>

?>


EXAMPLE:2  : CHDOLARARRAYS
==========

<CHDollar>
<USE>  CUTIL;

<PACK> MyP
{
    <CLASS> Programs
    {
         
        public FLOAT CHDollar-MAIN()
        {
            

<AList>  ar <NEW> <AList> ();
 for  (int  i=0;i<=100000;i++)
 ar.add(i,i);

 
 
 
 <CDOLLARARRAYS> list1 <NEW>  <CDOLLARARRAYS>("ANIMALS ");
        list1.add("1 horse");
 list1.add("2 pig");
 list1.add("3 cow");
 list1.add("4 goat");
 list1.add("5 chicken");
 
 list1.add("6 ostrich");
 list1.Display();

 
              
               
     %>

?>


EXAMPLE-3: CREATE  AN  BOOTLOADER   Using  CHDOLLAR

 <CHDollar>

<PACK>  MYOS
{
    <CLASS> MYOs
    {
public FLOAT CHDollar-MAIN(){


<PRINTLN>("HelloWorld  for  booting  MYOS");

          
               
     %>

?>


EXAMPE-4: POINTERS


<CHDollar>
<PACK> MyP
{
    <CLASS> Programs
    {
        public FLOAT CHDollar-MAIN()
        {
            

 <Str>  s="dsdds";
 
 {*} l Pointers (s);  
 
l.add(s);
 
 for (int i = 0; i NOT= l.size(); i = i + 1)
 {
 
 <OBJECT> obj=l.GETKEY(i);
 <PRINTLN>(obj);
 
 
 
 }
 
 
              
                
               
     %>

?>

Example-6: EXTEND

<CHDollar>

<IMPORT>

<PACK> MyP

<%
    <CLASS> Programs
    <%
        public FLOAT CHDollar-MAIN()

        {
 
 
 EXTEND list <NEW> EXTEND("BUCKETS");
 
 
 
 
      list.KeyAdd("1101");  
                    
                     list.add("jemin");
                     
                     list.RandomAdd();    
                     
                     list.Display(list);
                    
<PRINTLN>(""+list.DisplayO(list,1));

 
%>


?>


EXAMPLE-7: HEAP

<CHDollar>


<PACK> MyP
{
      <CLASS> Programs
    {
         public FLOAT CHDollar-MAIN()
        {

 

 Heap root <NEW> Heap("wilmix");
 
 for (int i = 0; i <= 10; i = i + 1)
 {
 root.add("item " + i);
 }
                 
 <PRINTLN>(root.size() );
 root.printTree();

          
               
     %>

?>

Example-8: LArray


<CHDollar>

<PACK> MyP
{
    <CLASS> Programs
    {
          public FLOAT CHDollar-MAIN()
        {
 
 LArray root <NEW> LArray("root");
 
 
 root.add("wilmix");
 root.add("jemin");
 root.add("shalom");
 root.add("1010");
 root.add("101");
 root.add("201");
 root.add("100000000");
 //print the tree's size and contents
 
 root.printTree();

          
               
     %>

?>

Example-9 : PIPE


<CHDollar>

<PACK> MyP

{
    <CLASS> Programs
    {
public FLOAT CHDollar-MAIN()
        {

 

Pipe list  <NEW> Pipe("BUCKETS");
 
 
 
 
      list.KeyAdd("1101");  
                    
                     list.add("jemin");
                     
                     list.RandomAdd();    
                     
                     list.Display(list);

<PRINTLN>(""+list.DisplayO(list,1));

 
          
               
     %>

?>


EXAMPLE-10: TREELIST

<CHDollar>

<PACK> MyP

{
    <CLASS> Programs
    {
        public FLOAT CHDollar-MAIN()
        {

 


TreeList list  <NEW> TreeList ("BUCKETS");
 
 
 
 
 
 
      list.KeyAdd("1101");  
                    
                     list.add("jemin");
                    
                     
                     list.RandomAdd("1111");   

TreeList list2 <NEW> TreeList("BUCKETS");
 list2.KeyAdd("1102");  
                    
                     list2.add("rahul");
                    
                     
                     list2.RandomAdd("1112");
                     
                 


<PRINTLN>("DATA="+list.DisplayO(list,0));


<PRINTLN>("DATA="+list2.DisplayO(list2,0));

          
               
     %>

?>


Example-11 : MASK


<CHDollar>


<PACK> My
{
    <CLASS> Programs
    {
           public FLOAT CHDollar-MAIN()
        {

 

 MASK root <NEW> MASK("wilmix");
 
 for (int i = 0; i NOT= 10; i = i + 1)
 {
 root.add("item " + i);
 }
             
 
 
 
 
 root <NEW> MASK("root1",1211211,54441);
 
 root  <NEW> MASK("root2",121121,5444);
 root  <NEW> MASK("root5",99121888,"5");
 
 root  <NEW> MASK("root3",12112,544);
 
 root  <NEW> MASK("root4",1211,54);
 
 root  <NEW> MASK("root51",121,5);
 
 
 root.printTree();

 


          
               
     %>

?>

Example-12 : WICKET


<CHDollar>


<PACK> MyPo
{
    <CLASS> Programs
    {
           public FLOAT CHDollar-MAIN()
        {
 Wicket  list12;
 list12 <NEW> Wicket(1000,10002,43433,4343,5555451);
 list12 <NEW> Wicket(10001,100021,434331,4343,5555452);
 list12 <NEW> Wicket(10002,100022,434332,4343,5555453);
 list12 <NEW> Wicket(10003,100023,434333,4343,5555454);
 list12 <NEW> Wicket(10004,100024,434334,4343,5555455);
 list12 <NEW> Wicket(10005,100025,434335,4343,5555456);
 
 
 list12.Display(list12);
 
 <PRINTLN>("DATA="+list12.DisplayO(list12,0));
                 
          
               
     %>

?>


Example-13 : STRUCTURE


<CHDollar>
<PACK> MyPoi
{
    <CLASS> Programs
    {
          public FLOAT CHDollar-MAIN()

        {
            

 <Str>  s="dsdds";
 
 {*} l Pointers(s);  
 
l.add(s);
 
 for (int i = 0; i NOT= l.size(); i = i + 1)
 {
 
 <OBJECT> obj=l.GETKEY(i);
 <PRINTLN>(obj);
 
 
 
 }
 
 
 
 
 <STRUCTURE>  list <NEW> <STRUCTURE> (l.GETKEY(0));
 
 for (int i11 = 0; i11 NOT= list.size(); i11 = i11 + 1)
 {
 
 
 
 <OBJECT>  el=list.ret(i11);

 

 
 <PRINTLN>("SNO= "+el);

                }
              
            
               
     %>

?>


Example-14 : BUCKETIST

bucketist.java
<CHDollar>


<PACK> MyP
{
    <CLASS> Programs
    {
          public FLOAT CHDollar-MAIN()
        {

 


Bucketist  bp    <NEW>  Bucketist("wilmix");

bp    <NEW>  Bucketist(1,222,434);
bp   <NEW>  Bucketist(1,222,434);


bp.Display(bp);


<PRINTLN>("DATA="+bp.DisplayO(bp,1));
          
               
     %>

?>

Note:  This  CHDOLLAR - Tutorial- EXERCISES   is  a  Practical  Exercises    for CDollar  Programmers  we  can  use  CHDOLLAR-LIB DLL     in  CHDollar   program


==================================================================================
                                        UNIT:4  :  CHDOLLARJAVA ,  CHDOLLAR  with  WDBA DB
==================================================================================
CHDOLLARJAVA
=============
CHDOLLARJAVAC  compiler  is  to   compile   .CH$   file  and  produces   .exe   and  .dll
which  can  be  reused  by other  CH$  program.
CHDollar-JAVA   which  is  used  to  run   .exe   files.


================================================================


UNIT-5:  CH$  Remote  Webpage  Syntax  

===============================================================


SYNTAX to  execute  executable files  by  remoteserver:


Compile   using   javac  filename.CH$  will  create   filename.CH$.exe

Rename   .exe   files   as    filename.CH$.exe

and  execute  filename.CH$  in browser  the  .exe  output  will  be  displayed

in the  browser.

What  is  the  syntax  to  get and  spliting  the  parameters ?
=====================================================================

<AList> <String> armg=SPLITREQUEST.RESULT(arraylistobject,"arraylist.dsn",howmanyGUI,incrementor);

it  is  used   to  get   the  value  from   WeBGui like  text  box  ,etc.

 

HTML.displayhtml("filename.html") =>  it  is  used  to  print  the  html  form contents  
in  the  webpage. and  it  is  used in  CHDOLLAR-AJAX.


            Print.Println(datatype,datatype)   for   CH$  program.

MY  FIRST  CH$  PROGRAM

<CHSAUCER>

@Remote
<PACK>  p
{
   <CLASS> MyArray
   {
      public void main()
      {
         int []  n = new int[15]; /* n is an array of 15 integers */
         int i,j;

ArrayList  ar  =  new  ArrayList();

         /* initialize elements of array n */
         for ( i = 0; i < 15; i++ )
         {
            n[ i ] = i + 100;

ar.add(i,n[i]);

         }
         


         /* output each array elements value */
         
         for (j = 0; j < 15; j++ )
         {
            Print.Println(""+j,""+ar.get(j).ToString()); //  To String   to  convert object  to  String.
         }
  
      }
   }
}

</CHSAUCER>


now   compile   using   javac  wil.CH$

what   happens?

It  produces  the   .exe   file   wil.CH$.exe.

 

Write   a    CHDOllar  Program with  GDollar  module(use  Book dts):
=======================================================

TS.java
=======


<CHDollar>


<PACK> TS
<%
    <CLASS> Y
    {
        public FLOAT CHDollar-MAIN()
        {
         

 
BOOK  u   <NEW>  BOOK("Wilmix");

for (int i=0;i<=100;i++)
u.add("col"+i);//add  the  values to  book 

for (int i=0;i<=100;i++)
<PRINTLN>(""+u.ret(i));// print  the book values

%>

?>

Write   a   Remote  webpage   program using  CH$?
===================================================

a)tre.CH$
========

<CHDollar>


<PACK> HierachialTree
<%
    <CLASS> roots
    {
        public FLOAT CHDollar-MAIN()
        {
         

 Bag  tree <NEW> Bag();
 
  Bag  Member <NEW> Bag();

  //add  a,b,c,d to  class5  section and class6   to  class6 section
      
Member.PUT("A","CLASS5");
Member.PUT("B","CLASS5");
Member.PUT("C","CLASS5");
Member.PUT("D","CLASS5");
Member.PUT("CLASS6","CLASS6");

//add  s1,s2,s11,s21,s12,s22  slibings.

 Bag  slibings <NEW> Bag();
slibings.PUT("A","s1");
slibings.PUT("A","s2");
slibings.PUT("B","s11");
slibings.PUT("B","s21");
slibings.PUT("C","s12");
slibings.PUT("C","s22");

//add  cricket,read,swin  to  activities..

Bag  activity <NEW> Bag();
activity.PUT("s1","cricket");
activity.PUT("s2","read");
activity.PUT("s21","swim");
activity.PUT("s12","swim");
tree.PUT(1,Member);
tree.PUT(2,slibings);
tree.PUT(3,activity);


activity.remove("s1","cricket");
//remove  cricket  activity
tree.remove(3,activity);
//remove  activity  object
tree.PUT(3,activity);
//again  put the  activity  to  3  index

//so  what will be  the  output?


<PRINTLN>("output="+tree.containsValue(Member));
//this  print  statement  will   print  output=true
  
//this  print  statement  will  print  tree  values
   <PRINTLN>("output="+tree);  

%>

?>

on  compilation   with  CWE  EDITOR


will  create   tre.exe  file   for  futhure  use...

and  rename  it   as  tre.CH$.exe  and   execute   it  in  browser.


Write   a   remote  webpage  program  for  that?

b)CH$ remote webpage  using  BOOK dts


<CHDollar>


<PACK> TS
<%
    <CLASS> Y
    {
        public FLOAT CHDollar-MAIN()
        {
         

 
BOOK  u   <NEW>  BOOK("Wilmix");

for (int i=0;i<=100;i++)
u.add("col"+i);

for (int i=0;i<=100;i++)
<PRINTLN>(""+u.ret(i));

%>

?>


follow  the  same  procedure  as  i said  above..

and  create  a   remotewebpage  for  that.....


c)  Create   a    CH$ using  wnosql  db


wdba.java
=========


<CHDollar>

<USE> CDollar.WDBA;

<USE> WDBA;

<PACK> TSwdba
<%
    <CLASS> Ywdba
    {
        public FLOAT CHDollar-MAIN()
        {
         

 
string g = WDBASQL.WDBASQLS("datastores", "USEDATABASE", "dbpwds", "C:\\Prog\\WNOSQ\\WNOSQL\\WNOSQL-cod"); 
//path where  .wdba  serverer files  is  stored  

           


            string t = WDBASQL.WDBASQLS("dbuser", "dbpwds", 1, "wilmix78", "wilmix78", 1, 5, g);
//supply  username  and  password

           
            string s11 = "RIGHTJOIN from student 0 to 1 , 1 to 4 ?= emp For X f(x) : {0,1,2,3,4,5,6,7,8,9,10,11} : {0,1,2,3,4,5,6,7,8,9,10,11} : {0}";

//perform  right  join  between   student  and  employee

 string s1 = "SelectAll from student 0 to 1 , 1 to 4 ?= XXX By X f(x) : {0,1,2}: {3,4,5} :{2,4}";

//select *  from  stodent  from  0   to  1

            
            <PRINTLN>(""+SQL.WDBAQUERY(  s1,  t));
//print   the   select(*) Query
            <PRINTLN>("" + SQL.WDBAQUERY(s11, t));
//Print  rightjoin  query


%>

?>


compile  using  CWE  EDITOR   and  create wdba.exe 

and  rename   as   wdba.CH$.exe  and

put  it  in CH$/bin directory


and  rename  it   as  abc6.CH$.exe  and   execute   it  in  browser.


 

===============================================================
UNIT-6:
=======
CH$  AJAX ,CH$  Forms , Bills,etc,Animation  and  Graphics


================================================================================== 

CHDOLLAR  SERVLET
==================
Print.Println("string"," ");
this   above   statement  will  print  the string  on the  webpage  will
act like  chdollar  servlet


CHDOLLARAJAX
==============
Print.Println("<form action=BILL.CH$ method=post>","");
if  BILL.CH$  is  the  current  CH$ program  when  you  give
method=post  and  action=CH$  it will act like  CH$  AJAX.

CHDOLLAR WXML  METHODS
=======================

SYNTAX:
=======

WXML.wxml<PARSE>r("filename.wxml", wxmlindex,string+"");

for  example)
WXML.wxml<PARSE>r("bill.wxml", 4,s3+"");
=> this  statement  is    used  to print  bill , Forms,TABLES.

4=> indicates  bill  format
1=> indicates  Forms
2=> indicates TABLES


CHDOLLAR  MVC
===============

CHDOLLAR  MVC   is  userdefined  it   is   very  easy for  developers
to  focus like struts.
take  3 class  Model(wdba  database code) , formview  (with set  and get  methods),
controller .

call    controller  class   result   to  CH$  main  program


ie)

public void  main()
{

String  name= ///parametervalue
//this    statements   are  mandaltory   eg)

//to  get   the  value  from   WeBGui like  text  box  ,etc.


controller.set(name); //set  form values.
CHDollar.out.println(controller.get());
//this   statement  will print  the  output  in webpage
}


CH$  GRAPHICS
==============
html1.html
===========

<!DOCTYPE html>
<html>
<body>

<p>Image to use:</p>
<img id="scream" src="http://www.en.planettours.bg/02/images/Bodrum/thumbnail.ashx.jpeg" alt="The Scream" width="220" height="277">

<p>Canvas to fill:</p>
<canvas id="myCanvas" width="250" height="300"
style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.</canvas>

<p><button onclick="myCanvas()">Try it</button></p>

<script>
function myCanvas() {
    var c = document.getElementById("myCanvas");
    var ctx = c.getContext("2d");
    var img = document.getElementById("scream");
    ctx.drawImage(img,10,10);
}
</script>

</body>
</html>


graphics.CH$
============

<CHSAUCER>
 

<PACK>  p
{
   <CLASS> graphics
   {
      public void main()
      {


HTML.displayhtml("html1.html");


 
}

}
}


</CHSAUCER>

Animate with  JQUERY
======================
animate.html
===========

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("button").click(function(){
        var div = $("div");
        div.animate({left: '500px'}, "slow");
        div.animate({fontSize: '3em'}, "slow");
    });
});
</script>
</head>
<body>

<button>Start </button>


<div style="background:#98bf21;height:100px;width:200px;position:absolute;">WELCOME TO CH$ </div>

</body>
</html>


animate.CH$
============


<CHSAUCER>

<PACK>  p
{
   <CLASS> MyArray
   {
      public void main()
      {

HTML.displayhtml("animate.html");
}   

}

}

</CHSAUCER>

 
 
CH$ with  ANGULAR JS
=======================

ang.html
========

<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>

<div ng-app="">
 
<p>Kindly  type in  the  text  box:</p>
<p>Name : <input type="text" ng-model="name" placeholder="Enter your  favourite language"></p>
<h1>Welcome  to {{name}} Programming!</h1>

</div>

</body>
</html>


  
angular.CH$
=============


<CHSAUCER>

<PACK>  p
{
   <CLASS> MyArray
   {
      public void main()
      {

HTML.displayhtml("ang.html");
}   

}

}

</CHSAUCER>

 

bootstrap.html
=============

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
  <h2>MY HOMEPAGE</h2>
  <p>MY  HOME  PAGE</p>
  <ul class="breadcrumb">
    <li><a href="#">Home</a></li>
    <li><a href="#">ABOUTME</a></li>
    <li><a href="#">FAQS</a></li>
    <li class="active">Contactme</li>
  </ul>
</div>

</body>
</html>


angular.CH$
===========


<CHSAUCER>

<PACK>  p
{
   <CLASS> MyArray
   {
      public void main()
      {

HTML.displayhtml("bootstrap.html");
}   

}

}

</CHSAUCER>


What    is  the  directory   structure    for  CH$?

Note:


The    Necessary  files    needed   for  CHDollar  is    chdollar -javac ,  chdollar -java  

and  CWEEditor -cdrun   to   execute   .exe  files    and  create  .dll   files.

CHDollar  P.L   is  designed   so  that      C#   Professionals ,C/C++  can  easily  follow  it.

index.CH$
=========

<CHSAUCER>
 

<PACK>  p
{
   <CLASS> index
   {
      public void main()
      {


HTML.displayhtml("Register.html");


 
}

}
}


</CHSAUCER>

Register.html

<html>
  <head>
    <title>GCLOUDOS  USER  REGISTRATION</title>
    
  </head>

  <body class="fancy">
<form action="http://localhost:8090/Jquerytest.CH$" method="post" >

<div id="pageContainer">
      <img src="images/banner1.png" alt="GCLOUD OS @  Jemin Information Technology (C)  ALL  RIGHTS  RESERVED">
      <div id="pageContent">

        <div id="chaptersAccordion">

            <h2><a href="#chapter1">Enter your  System Details</a></h2>
            <div>
              

<p>Enter  the Name: <input type="text" name="name" size="25" /></p>
<p>Enter your Username : <input type="text" name="uname" size="15"/></p>
<p>Enter  the password : <input type="password" name="password" size="25" /></p>


            </div>


<h2><a href="#chapter2">REGISTER</a></h2>
            <div>
              <input type="submit" name="Click">
<input type="reset" name="Clear">
            </div>


</form>

</body>
</html>

Write   a    Oak java    for  Jquerytest  as   we see  this   same  example   in JSTAR.

rename  it    as    Jquerytest.CH$.exe

and  execute   in  browser.


==============================

Program-2
=========

<CHSAUCER>
 

<PACK>  p
{
   <CLASS> index1
   {
      public void main()
      {


HTML.displayhtml("Eregister.html");


 
}

}
}


</CHSAUCER>


<html>
  <head>
    <title>  USER  REGISTRATION</title>
    
  </head>

  <body class="fancy">
<form action="http://localhost:8090/Programs8.CH$" method="post" >

<div id="pageContainer">
      
      <div id="pageContent">

        <div id="chaptersAccordion">

            <h2><a href="#chapter1">Enter your  EMP Details</a></h2>
            <div>
              

<p>Enter  the Name: <input type="text" name="ename" size="25" /></p>
<p>Enter your Username : <input type="text" name="dept" size="15"/></p>
<p>Enter  the password : <input type="password" name="design" size="25" /></p>


            </div>


<h2><a href="#chapter2">REGISTER</a></h2>
            <div>
              <input type="submit" name="Click">
<input type="reset" name="Clear">
            </div>


</form>

</body>
</html>


Write   a    Oak java    for  Program8  as   we see  this   same  example   in JSTAR.

rename  it    as    Program8.CH$.exe

and  execute   in  browser.

==============================================

EXAMPLE
=========

use  wdba.exe  and  rename  it   as wdba.CH$.exe

and  now  excecute  in  browser   as  shown   below...

 

A) What   are the  modules   present  in  CHDollar?
=========================================

CHDollar  is  a  wide  topic focused  only   on  

Proxy Remote  Webapplication  with  TYPE-2  (CLient  and  Server)...


There   are    7  modules   present  in  CHDollar...

1)  CHDOLLAR-CH$ (used  for  normalremotewebapplication)(This module is included  in  CHDollar)

2) CHDOLLAR-chdollar-J$-ATM BANKING(This module is included  in  CHDollar)

3)  CHDOLLAR-JSTARPart1-ADVANCEDWEBDESIGN(biometric) and  CHDollar-JSTARPart2(Library  management and other client-server projects)

(This module is included  in  CHDollar)

4)  CHDOLLAR-JWP (used  for  Reservation based  projects )

(This module is included  in  CHDollar)

5)  CHDOLLAR  with  JDollar(JWEB)  Technology...(Here  JDollar(JWEB)  is  focused)

(This module is included  in  CHDollar)

6)  It  is  used  with  C@  and  Arrow# -  Manufacturing  and  statistics domain

(This module is not included in  CHDollar;  you  can  see  more  detail  at  C@  and  Arrow#)

7)  CHDOLLAR  with  CDollar,Gdollar  (OnlineBills , forms,reports)(we can  use  C# Technology)

(This module is included  in  CHDollar)

 

What  are  the  advantages  of  CH$ P.L  over  JSTAR P.L?
==========================================================

CH$  is  used  in  variety  of  remote  webapplication  like  BILLING, FORMS,Reports, ATM  banking,  biometric,

Reservation  like  bus,train,cinema  ticket,etc.

Why  we  focus  CHDollar?
===========================

Suppose  a   banking  customer  want  to  update  his  account  

in  banking  website..  That  data  or  information   is  stolen by   hackers..

SO  CHDollar  is   used   for  security  side  towards banking  and  finance  domain.

Since  we  already  know  the  fact  that if   you use  .exe or  .dbs   file  in  CHDollar  then

it  will   be  more  safe..

So  CHDollar is    focused  ....


Important  note:
================

When  you  host   JDollar  or  Chdollar  Servers   in  any  of  your   today

available   hosting   provider.  You   can   see  JDollar  or   CHdollar   website   at  any  mobile phones

or  at  internet.

SO   Hosting    is  mandaltory   for  CHDollar  p.L  and  JDollar  p.l   to  publish   the  webpages.

 

=================END  OF   CHDOLLAR   TUTORIAL======================================

Clone this wiki locally