GitXplorerGitXplorer
M

dart-dasic

public
6 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
fb80d3e336a37a7fd728b87da631fd86d0a429d5

Released v2.0.3

MMikeMitterer committed 6 years ago
Unverified
2c2d0a127737d09959a70e3636268d009417a933

logging-dependency added

MMikeMitterer committed 6 years ago
Unverified
c11ac83aa3e1351077a6ea4180a9eaeb87a64af6

Released v2.0.1

MMikeMitterer committed 6 years ago
Unverified
3cbafbea14e24633454c09edca52d1af76520763

Works with Dart 2.x

MMikeMitterer committed 6 years ago
Unverified
561f0e026d52caacbbb26a04ad6af7d21673694a

Released v1.1.1

MMikeMitterer committed 8 years ago
Unverified
a090ec9d3c257f51be03389ee98ff0186ee8d9ad

doc: Strong-Mode support

MMikeMitterer committed 8 years ago

README

The README file for this repository.

Dasic - Dart BASIC interpreter

Dasic is a complete standalone interpreter for a dialect of the original BASIC language. It handles tokenizing, parsing, interpreting, output, variables, expressions, and flow control, like a full-scale compiler or interpreter, just in miniature. I tried to keep the code simple and readable while still being short and readable.

If you've ever wanted a gentle introduction to how a programming languages work under the hood, Dasic is a good place to start.

Sample

Result of dasic packages/dasic/scripts/mandel.das

                                                ----------
                                          ---------++*+++-------
                                      -------------+++*=*=++-------
                                  ---------------++*==@@@=+++---------
                               -------------++++++=*@@@@@@@+++---------
                            ------------+++++++++===@@@@@@==++++++++++---
                         ------------+++**@@@=*@@@@@@@@@@@@@@@@===*====---
                     -------------++++++==*@@@@@@@@@@@@@@@@@@@@@@@@@*+++---
               -----++++++++++++++++++=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+++----
        -----------++=====+=*=+++++++*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+----
    --------------+++++=@@@@@@@@*@===@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=++-----
  -------------++++++=@@@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*+------
 ------++++++++++=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+++------
 --++++=+++=+++@=*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=++++------
 ---------+++++++=====@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=++------
   --------------++++===@@@@@@@@@@@==@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@++-----
     -------------++++==@*==*@=@==+==@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*=++----
           --------+++=+++++=++++++++=@*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@==*+----
                  --------------++++++=@=@@@@@@@@@@@@@@@@@@@@@@@@@@*=+++----
                       ------------++++++=@@@@@@@@@@@@@@@@@@@@@@*@@@@=+----
                           -----------++=@*==+=@@@**@@@@@@*=*=@=++++==+---
                              ------------++++++++=@@@@@@@@++++++-------
                                 --------------+++*@*@@@*=@++----------
                                    --------------++++=@=+++---------
                                        -----------++==++++-------
                                             -------=+--------

Install

If you don't have Dart on your machine - Download and install it from here

Install Dasic

    pub global activate dasic

Update Dasic

    # activate dasic again
    pub global activate dasic

Uninstall Dasic

    pub global deactivate dasic   

Usage

Try

    dasic packages/dasic/scripts/hello.das
    dasic packages/dasic/scripts/hellos.das
    dasic packages/dasic/scripts/mandel.das

More Info

The real information about Dasic, including the language syntax and how the interpreter works is all in with the code, so go ahead and read through Dasi.

If you have any questions, feel free to get in touch. Cheers!

Features and bugs

Please file feature requests and bugs at the issue tracker.

Thanks

I want to thank "Bob Nystrom" for his base-work "JASIC"! You can read more from Bob and about "A Complete Interpreter in One Java File" here on his Blog.
Java-Version of Dasic is Jasic

License

Copyright 2015 Michael Mitterer (office@mikemitterer.at),
IT-Consulting and Development Limited, Austrian Branch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language
governing permissions and limitations under the License.