ScriptStack 1.0.4
Loading...
Searching...
No Matches
ScriptStack.Compiler Namespace Reference

Classes

class  Derivation
class  Lexer
 The lexical analyzer (Lexer) breaks code (written in sentences) into a series of known Token and pass the token stream to the ScriptStack.Compiler.Parser. More...
class  LexerException
class  Optimizer
class  Parser
 The parser builds an ScriptStack.Runtime.Executable out of the Token stream returned from the ScriptStack.Compiler.Lexer while checking for correct syntax. More...
class  ParserException
interface  Scanner
 An interface to modify the default process of reading text files into Script's. More...
class  ScannerPrototype
class  SerializableToken
class  Token
 A lexical token or simply token is a string with an assigned and thus identified meaning. More...

Enumerations

enum  TokenType {
  Include , Shared , Var , LeftBrace ,
  RightBrace , LeftParen , RightParen , LeftBracket ,
  RightBracket , Period , Comma , SemiColon ,
  Increment , Decrement , Plus , Minus ,
  Multiply , Divide , Modulo , Assign ,
  AssignPlus , AssignMinus , AssignMultiply , AssignDivide ,
  AssignBinaryAnd , AssignBinaryOr , AssignXor , AssignBinaryNot ,
  AssignModulo , And , Or , Not ,
  Equal , NotEqual , Greater , GreaterEqual ,
  Less , LessEqual , If , Else ,
  Switch , Case , Default , Colon ,
  While , For , Foreach , In ,
  Break , Continue , Function , Return ,
  Identifier , Null , Integer , Float ,
  Boolean , String , Char , Double ,
  ShiftLeft , ShiftRight , CustomObject , Volatile ,
  Struct , Enum , Run , Yield ,
  Lock , Wait , Notify
}
 Known types of Token. More...

Enumeration Type Documentation

◆ TokenType

Known types of Token.

Enumerator
Include 
Shared 
Var 
LeftBrace 
RightBrace 
LeftParen 
RightParen 
LeftBracket 
RightBracket 
Period 
Comma 
SemiColon 
Increment 
Decrement 
Plus 
Minus 
Multiply 
Divide 
Modulo 
Assign 
AssignPlus 
AssignMinus 
AssignMultiply 
AssignDivide 
AssignBinaryAnd 
AssignBinaryOr 
AssignXor 
AssignBinaryNot 
AssignModulo 
And 
Or 
Not 
Equal 
NotEqual 
Greater 
GreaterEqual 
Less 
LessEqual 
If 
Else 
Switch 
Case 
Default 
Colon 
While 
For 
Foreach 
In 
Break 
Continue 
Function 
Return 
Identifier 
Null 
Integer 
Float 
Boolean 
String 
Char 
Double 
ShiftLeft 
ShiftRight 
CustomObject 
Volatile 
Struct 
Enum 
Run 
Yield 
Lock 
Wait 
Notify 

Definition at line 11 of file Token.cs.

12 {
13 Include,
14 Shared,
15 Var,
22 Period,
23 Comma,
27 Plus,
28 Minus,
30 Divide,
31 Modulo,
32 Assign,
39 AssignXor,
42 And,
43 Or,
44 Not,
45 Equal,
47 Greater,
49 Less,
50 LessEqual,
51 If,
52 Else,
53 Switch,
54 Case,
55 Default,
56 Colon,
57 While,
58 For,
59 Foreach,
60 In,
61 Break,
64 Return,
66 Null,
67 Integer,
68 Float,
69 Boolean,
70 String,
71 Char,
72 Double,
77 Struct,
78 Enum,
79 Run,
80 Yield,
81 Lock,
82 Wait,
83 Notify,
84 }