Previous: Specifying Memory Blocks, Up: Configuration
The syntax of the configuration file in Backus-Naur Form (BNF) is:
description | -> | nameClause registerClause memoryClauseList
|
nameClause | -> | NAME ( nameParams )
|
nameParams | -> | string , endianness
|
endianness | -> | LITTLE ENDIAN | BIG ENDIAN
|
registerClause | -> | REGISTERS ( number ) registerList
|
registerList | -> | register | register registerList
|
register | -> | { string , number , number }
|
memoryClauseList | -> | memoryClause | memoryClause memoryClauseList
|
memoryClause | -> | byteMemoryClause | wordMemoryClause
|
byteMemoryClause | -> | BYTE MEMORY ( memoryParams ) memoryValues
|
wordMemoryClause | -> | WORD MEMORY ( memoryParams ) memoryValues
|
memoryParams | -> | number , number
|
memoryValues | -> | number | number , memoryValues
|
Comments are introduced by //
and last to the end of line C++
style.