Update Ch.2 of the Toy tutorial.
authorRiver Riddle <riddleriver@gmail.com>
Tue, 27 Aug 2019 19:43:55 +0000 (12:43 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 27 Aug 2019 19:44:27 +0000 (12:44 -0700)
commit6f68def852c2443782b8ed61e9320d6aebb2ec76
tree3e5b0486d90e9f247e87c082af843459dad8ed41
parent696fcb7520e13b8c712146b6bcb6a55815af660c
Update Ch.2 of the Toy tutorial.

The code and documentation for this chapter of the tutorial have been updated to follow the new flow. The toy 'array' type has been replaced by usages of the MLIR tensor type. The code has also been cleaned up and modernized.

Closes tensorflow/mlir#101

PiperOrigin-RevId: 265744086
mlir/examples/toy/Ch1/include/toy/AST.h
mlir/examples/toy/Ch2/include/toy/AST.h
mlir/examples/toy/Ch2/include/toy/Lexer.h
mlir/examples/toy/Ch2/mlir/MLIRGen.cpp
mlir/examples/toy/Ch2/toyc.cpp
mlir/g3doc/Tutorials/Toy/Ch-2.md
mlir/test/Examples/Toy/Ch2/codegen.toy