This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "strscan" | |
class Lexer | |
def initialize(input) | |
@input = input | |
@scanner = StringScanner.new(input) | |
@line = 1 | |
end | |
def lex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%grammar.type "ruby" | |
%require "~> 0.1" | |
%token IDENT | |
%token NUM | |
%token PLUS "+" | |
%token MINUS "-" | |
%token DIVIDE "/" | |
%token MULTIPLY "*" | |
%token EQUALS "=" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configuration": { | |
"require": [ | |
{ "header": "stdlib.h" }, | |
{ "header": "stdint.h" }, | |
{ "header": "stdio.h" } | |
] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AllCops: | |
TargetRubyVersion: 2.3 | |
Metrics/LineLength: | |
Enabled: false | |
Metrics/MethodLength: | |
Max: 15 | |
Metrics/BlockLength: | |
Exclude: | |
- 'spec/*.rb' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AffectedArc07's T-comm script | |
underline = 0; // Prefab Variable | |
bold = 0; // Prefab Variable | |
cardcolor = "ffffff"; // Prefab Variable | |
color = "000000"; // Prefab Variable | |
def doAsdafagus(theText,from,to) // Defines the function | |
{ | |
newText = replace(theText, " " + from + "ä", " " + to); | |
newText = replace(newText, "ä" + from + " ", to + " "); | |
newText = replace(newText, " " + from + " ", " " + to + " "); |
OlderNewer