Category : angular-dart

import ‘dart:async’; import ‘dart:io’; import ‘package:validated/validated.dart’; //import ”; enum Token {Identifier, Constant, Operator, Keyword, Error} void main() async { var f = new File(‘data.txt’); var fdata ; if(await f.exists()){ fdata= await f.readAsString(); } bool isConstant(var str){ if(isNumeric(str)) return true; else if(str[0]==’"’ && str.length-1==’"’) return true; else if(str[0]==”’ && str.length-1==”’) return true; else return false; } ..

Read more

import ‘dart:async’; import ‘dart:io’; import ‘package:validated/validated.dart’; //import ”; enum Token {Identifier, Constant, Operator, Keyword, Error} void main() async { var f = new File(‘data.txt’); var fdata ; if(await f.exists()){ fdata= await f.readAsString(); } bool isConstant(var str){ if(isNumeric(str)) return true; else if(str[0]==’"’ && str.length-1==’"’) return true; else if(str[0]==”’ && str.length-1==”’) return true; else return false; } ..

Read more

import ‘dart:collection’;//queue import ‘dart:io’; import ‘package:flutter/material.dart’; /*******SCANNER*******/ bool isPunctuator(var ch) //check if the given character is a punctuator or not { if (ch == ‘:’ || ch == ‘+’ || ch == ‘-‘ || ch == ‘*’ || ch == ‘/’ || ch == ‘,’ || ch == ‘;’ || ch == ‘>’ || ch ..

Read more