dawolang library

  • Dawolang 0.2.0 by Heikki K Lappalainen updated: 21.11.2023
  • Small, literal word-based message and command language, that eventually
  • grows big, but stays always grateful to dartlang, it's little brother.
  • Helps in standardizing words, that are used in messages, and classifying
  • them to groups.

Classes

Analyzer
Finds words that are in lexicon word list.
AwesomeDawolang
Sample code created automatically. Checks if you are awesome. Spoiler: you are.
DawolangClass
If needed class for Dawolang.
KeyWords
KeyWords class, mostly some notes for future development.
LexiconBase
First of many lexicons, that keep words and commands of dawolang.
ListHandler
Great plans for this.. not exactly.
ListTools
String manipulation tools.
Rules
Be ready to add more efficient behaviour in dawolang.
ShowRoom
Word manipulation and presentation.
Word
WordBase
Word base class.

Properties

an Analyzer
Long name: var analyzer = new Analyzer(); Short name: Prefer short name for instance.
getter/setter pair
buf StringBuffer
getter/setter pair
dl DawolangClass
getter/setter pair
flowLangI int
To collect flow-events count. TODO Hide upper level variables
getter/setter pair
kw KeyWords
Instance of KeyWords class.
getter/setter pair
lb LexiconBase
Instance of #words #class.
getter/setter pair
lt ListTools
Instance of list tools
getter/setter pair
rules Rules
Instance of rules library
getter/setter pair
sr ShowRoom
Instance of ShowRoom class.
getter/setter pair
wbTest Word
Creating instance for test and presentation.
getter/setter pair
wordMotto String
Giving some visibility for #word
getter/setter pair

Functions

flwSrv(String actor, StringBuffer buf, String msg, bool pr) → void
Do not look out unprofessionally and spam your code with print-clauses! Instead use: flow !! DONE: To avoid messing with buffer and actor HOORAY: used local fl(). local: fl calls this Flow()
renderKeyWords() → void
if needed presentation function.
wordRule() → void
Outer function, that is finally used inside class.

Typedefs

DawolangPrint = String Function(String msg, String msg2)
A typedef, or function-type alias, gives a function type a name that you can use when declaring fields and return types. Because typedefs are simply aliases, they offer a way to check the type of any function. typedef Compare = int Function(Object a, Object b); TODO Typedef practicing. Function type returning String