<commit_before>ScatterScript
=============

A Simple Script Language

### Usage

- **Compile**: Not implement
  + example: 
- **Assemble**: ss -a `asm-souce-file` `out-file(unnessesary)`
  + example: ss -a test.ssam main  
This will create two file: `main.sse` and `main.sse.info`. `main.sse` is the executable file; `main.sse.info` is the exe file with comments for each instruction. 
- **Run**: ss `sse-file`
  + example: ss main.sse  
this will run executable file main.sse<commit_msg>update description<commit_after>ScatterScript
=============

A Simple Script Language

### Grammar

- Like C language, you can use control structures: **if...else**, **while**, **continue**, **break**, but **<span style="color:red;">no</span>** **for** and **switch**

- Like C language, you have a entry point: main function. In ScatterScript, the entry point the **_main function**

- Like JavScript, you can declare a variable by using keyword **var**, and define a fuction by using keyword **func**

- You must first declare a variable, and then assign value
     ```
     var aaa;
     aaa = 10;
     ```
- Data Type: Integer, Float-point number, String

- Example:
  ```
  func sum(end)
  {
	  var start;
	  start = 0;
	  while (end > 0)
	  {
		  start += end;
		  end -= 1;
	  }
	  return start;
  }

  func _main()
  {
	  var out;
	  out = sum(10);
	  return 0;
  }
  ```



### Usage

- **<span style="font-size:16px">CompileToExe</span>**: <span style="color: red; font-weight:bold">ss</span> <span style="color: blue; font-weight:bold">-c</span> `souce-file` `out-file(optional)`
  + example: <span style="color:#B51C1C">ss -c test.ss</span>  
This will create the final byte-code **test.sse**

- **<span style="font-size:16px">CompileToAsm</span>**: <span style="color: red; font-weight:bold">ss</span> <span style="color: blue; font-weight:bold">-s</span> `souce-file` `out-file(optional)`
  + example: <span style="color:#B51C1C">ss -s test.ss</span>  
This will create the equivalent assemble file **test.ssam**

- **<span style="font-size:16px">Assemble</span>**: <span style="color: red; font-weight:bold">ss</span> <span style="color: blue; font-weight:bold">-a</span> `asm-souce-file` `out-file(optional)`
  + example: <span style="color:#B51C1C">ss -a test.ssam main</span>  
This will convert assemble file to the final byte-code **main.sse**. 

- **<span style="font-size:16px">Run</span>**: <span style="color: red; font-weight:bold">ss</span> `sse-file`
  + example: <span style="color: #B51C1C">ss main.sse</span>   
This will run executable file **main.sse**
{'fraction_non_alphanumeric': 0.18584758942457233, 'fraction_numerical': 0.01088646967340591, 'mean_word_length': 4.10515873015873, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '994431', 'n_tokens_mistral': 932, 'n_tokens_neox': 882, 'n_words': 256}