Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
Buses Program 3 by James White

  OS

---------------------

int a;
int b;

int c = 3;

int main(int a, int b, float X, double Y2)
{
    int    Data1;
    double Data2 = 25.45;
};

------------------


      TOKEN LIST:

   TYPE         VALUE

BuildInType     "int"
Identifier      "a"
Punctuator      ";"
BuildInType     "int"
Identifier      "b"
Punctuator      ";"
BuildInType     "int"
Identifier      "c"
Operation       "="
Number          "3"
Punctuator      ";"
BuildInType     "int"
Identifier      "main"
Punctuator      "("
BuildInType     "int"
Identifier      "a"
Punctuator      ","
BuildInType     "int"
Identifier      "b"
Punctuator      ","
BuildInType     "float"
Identifier      "X"
Punctuator      ","
BuildInType     "double"
Identifier      "Y2"
Punctuator      ")"
Punctuator      "{"
BuildInType     "int"
Identifier      "Data1"
Punctuator      ";"
BuildInType     "double"
Identifier      "Data2"
Operation       "="
Number          "25.45"
Punctuator      ";"
Punctuator      "}"
Punctuator      ";"
EOF             "EOF"


Next sentence



Parse_Var()

  Type = int
  Name = "a"


Next sentence



Parse_Var()

  Type = int
  Name = "b"


Next sentence



Parse_Var_w_Init()

  Type       = int
  Name       = "c"
  Init_Value = 3


Next sentence


Parse_Definite_Function()
  Ret_Type  = int
  Func_Name = main


Param #1:
   Type = int
   Name = "a"


Param #2:
   Type = int
   Name = "b"


Param #3:
   Type = float
   Name = "X"


Param #4:
   Type = double
   Name = "Y2"



Parse_Var()

  Type = int
  Name = "Data1"



Parse_Var_w_Init()

  Type       = double
  Name       = "Data2"
  Init_Value = 25.45


Next sentence

  OS


Command exited with non-zero status 58
Cached Result
Last Run: 8:03:09 pm
Compile: 0.021s
Execute: 0.06s
Memory: 3.09Mb
CPU: 0.081s