ExC v0.4.2 Common.StringElements View Source

Handles all the strings generated in the compilation process.

Link to this section Summary

Functions

This method is called inside Writer.write_file/1 and is the default ouput executable name. If no output name is provided, ExC will use this one.

This method is called each time the compiler needs to print the output of the CodeConnector module, specifically this method: CodeConnector.connect/2.

This method is called each time the compiler needs to print the output of the CodeGenerator module, specifically this method: CodeGenerator.generate_code/2.

This method is called each time the compiler needs to print the output of the CodeOptimizer module, specifically this method: CodeOptimizer.optimize/2

This method is called each time the compiler needs to print the output of the Reader module, specifically this method: Reader.read_code_and_tokens/3.

This method is called each time the compiler needs to print the output of the Parser module, specifically this method: Parser.parse/2.

This method is called each time the compiler needs to print the output of the Lexer module, specifically this method: Lexer.tokenize/1.

This method is called each time the compiler needs to print the output of the Reader module, specifically this method: Reader.read_code_and_tokens/3.

Link to this section Functions

This method is called inside Writer.write_file/1 and is the default ouput executable name. If no output name is provided, ExC will use this one.

Specs

Returns ouput.o.s which is the default output executable name.

This method is called each time the compiler needs to print the output of the CodeConnector module, specifically this method: CodeConnector.connect/2.

Specs

Returns Code connected which is just a label that represents the optimized assembly code with the appropiate headers needed to write the executable.

This method is called each time the compiler needs to print the output of the CodeGenerator module, specifically this method: CodeGenerator.generate_code/2.

Specs

Returns Code generated which is just a label that represents the generated assembly code.

This method is called each time the compiler needs to print the output of the CodeOptimizer module, specifically this method: CodeOptimizer.optimize/2

Specs

Returns Code optimized which is just a label that represents the optimized assembly code.

This method is called each time the compiler needs to print the output of the Reader module, specifically this method: Reader.read_code_and_tokens/3.

Specs

Returns GTL which is just a label that represents the General Token List and contains all the tokens contained in c_tokens.xml specification file.

Link to this function

lexer_error_invalid_token()

View Source

This method is called each time the compiler needs to print the output of the Parser module, specifically this method: Parser.parse/2.

Specs

Returns OAST which is just a label that represents the Output Abstract Syntax Tree generated by the Parser.

This method is called each time the compiler needs to print the output of the Lexer module, specifically this method: Lexer.tokenize/1.

Specs

Returns OTL which is just a label that represents the Output Token List and contains all the tokens contained in the source code

Link to this function

parser_error_missing_token()

View Source
Link to this function

parser_error_token_not_absorbed()

View Source

This method is called each time the compiler needs to print the output of the Reader module, specifically this method: Reader.read_code_and_tokens/3.

Specs

Returns SCS which is just a label that represents the Source Code String and represents the source code of the C input program.