polserver/pol-core/bscript/compiler/format
Eric Swanson a77ddd028e
New compiler: Add optimized unary expressions (#244)
Adds:
- UnaryOperator: AST node for unary operators -, ++, --, and so forth
- UnaryOperatorOptimizer: optimizes a unary operator with its operand
  - now integer and float negation, and integer inversion
  - later x[y]++ to a single instruction

Also:
- automatically include basic.em, which includes some parameter defaults like -1.

This allows the compiler to generate output for a hello, world script with the exact same .ecl output as the legacy compiler.
2020-08-26 19:24:47 -07:00
..
CompiledScriptSerializer.cpp Normalize include paths (#221) 2020-08-15 08:01:19 +02:00
CompiledScriptSerializer.h bscript/compiler: use c++17 nested namespace definitions (#202) 2020-08-10 12:20:29 +02:00
ListingWriter.cpp Normalize include paths (#221) 2020-08-15 08:01:19 +02:00
ListingWriter.h Add StoredTokenDecoder and ListingWriter stubs; write listfile (#208) 2020-08-11 12:49:18 +02:00
StoredTokenDecoder.cpp New compiler: Add optimized unary expressions (#244) 2020-08-26 19:24:47 -07:00
StoredTokenDecoder.h New compiler: Add IntegerValue (#243) 2020-08-25 23:27:24 -07:00